[Announcement] Ganeti Web Manager 0.11.0 released

27 views
Skip to first unread message

Evan Tschuy

unread,
Apr 21, 2015, 7:14:51 PM4/21/15
to ganeti...@googlegroups.com
The Open Source Lab is proud to announce the release of v0.11.0.

Notable Changes:

* Ganeti Web Manager is now a Python package
* New installation script!
* Refactoring and new internal application structure
* Reworked configuration, with config.yml

Other:

* Added notes field to virtual machines
* The VM Wizard now has a summary page
* Updated VNCAuthProxy
* Updated documentation [available on Read the Docs [0]]

You can find the tarball of 0.11.0 at:

https://code.osuosl.org/attachments/download/3405/ganeti_webmgr-0.11.0.tar.gz

or check out the master branch in our Git repo:

git clone -b master https://github.com/osuosl/ganeti_webmgr.git

If you encounter any bugs, please report them to the issue tracker on
code.osuosl.org [1]. You can also find us on Freenode: #ganeti-webmgr.

-- Evan Tschuy
tsc...@osuosl.org

[0] http://ganeti-webmgr.readthedocs.org
[1] http://code.osuosl.org/projects/ganeti-webmgr

Gianfilippo

unread,
May 4, 2015, 5:14:57 AM5/4/15
to ganeti...@googlegroups.com
Hi all,
first of all, thank you for the last release of GWM. it's becoming a
very useful tool in my daily tasks.
I'm having some issues with the configuration of ldap support in the
last 0.11 stable. I can see from the documentation that a fab ldap
command is required after creating the ldap_settings.py ; but the
command fails with:

[localhost] local: venv/bin/pip install -q -r requirements/ldap.txt
/bin/sh: 1: venv/bin/pip: not found

Fatal error: local() encountered an error (return code 127) while
executing 'venv/bin/pip install -q -r requirements/ldap.txt'

Aborting.

i have executed a source /opt/ganeti_webmgr/bin/activate before that.
Also, the requirements/ldap.txt file was missing - i recovered it from
an old GWM installation.

I'm a bit confused - the installation right now is not performed anymore
with "fab" (i executed it with the new installation script) but from the
documentation i see a reference to fab for ldap support.

Any hint?
thank you very much.
--
Gianfilippo Giannini
System administration for the masses
mail me: gianfilipp...@kelyon.it - call me: +39 081 19753290
stuck in the '90s? fax me! +39 081 19753299
"I love deadlines. I love the whooshing noise they make as they pass" -
Douglas Adams

Evan Tschuy

unread,
May 5, 2015, 8:59:37 PM5/5/15
to ganeti...@googlegroups.com
Hi Gianfilippo,

Thanks for the report. I took a look at how LDAP works, and it's
currently a little broken. The pieces are all there, but in redoing
the settings in 0.11 we broke the ldap settings import.

I've made a preliminary fix that works locally, and will hopefully
have a release candidate that fixes your issue out shortly. I'll also
be sure to update the docs on how to get it to work successfully.

Thanks!

Evan Tschuy
> --
> You received this message because you are subscribed to the Google Groups
> "ganeti-webmgr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ganeti-webmg...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

Gianfilippo

unread,
Jun 6, 2015, 7:51:09 AM6/6/15
to ganeti...@googlegroups.com
Hello Evan,
thanks for your support. I'm testing now RC2, but it seems i really
cannot get LDAP working.
I have performed the actions described in the updated config instructions:

- installed the described package dependencies for deb based systems
- executed pip install -r requirements/ldap.txt from install dir
- customized ldap_settings.py and put it in /opt/ganeti_webmgr and
/opt/ganeti_webmgr/config (to be sure)

Trying to login, i get an auth error and, checking with tcpdump, no
connection attempt is performed to my LDAP server.
I've also set logger.setLevel(logging.DEBUG) in my ldap_settings.py
file, but i don't get any message in my apache logs or syslog.

Anything else to check?
Sorry, i'm a bit of a novice on python. Cheers

Gianfilippo

unread,
Jun 7, 2015, 6:50:30 AM6/7/15
to ganeti...@googlegroups.com
Hello,
I managed to fix the issue. It seems that you need to edit
ganeti_webmgr-0.11.1-rc2/ganeti_webmgr/ganeti_web/settings/ldap_settings.py
*before* executing ./scripts/setup.sh -D mysql
(the documentation was not clear about this - it described the LDAP
operations only in the "configuration" section, that is after the
installation part).
Editing ldap_settings.py before executing the install fixed my issue.

Another thing, for all openldap users out there: if you're using
posixGroup type and not GroupOfNames for your LDAP groups, you need to
change the ldap_settings.py file as follows:

# LDAP Authentication via django-auth-ldap
# http://packages.python.org/django-auth-ldap/#reference
import ldap
from django_auth_ldap.config import LDAPSearch, PosixGroupType

and

AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=group,dc=example,dc=net",
ldap.SCOPE_SUBTREE,
"(objectClass=posixGroup)")


and

AUTH_LDAP_GROUP_TYPE = PosixGroupType()

Cheers
Reply all
Reply to author
Forward
0 new messages