Merge lp://qastaging/~xianghui/charm-helpers/lp1385162 into lp://qastaging/charm-helpers

Proposed by Xiang Hui
Status: Superseded
Proposed branch: lp://qastaging/~xianghui/charm-helpers/lp1385162
Merge into: lp://qastaging/charm-helpers
Diff against target: 53 lines (+31/-3)
2 files modified
charmhelpers/contrib/openstack/context.py (+6/-3)
tests/contrib/openstack/test_os_contexts.py (+25/-0)
To merge this branch: bzr merge lp://qastaging/~xianghui/charm-helpers/lp1385162
Reviewer Review Type Date Requested Status
Edward Hope-Morley Needs Fixing
OpenStack Charmers Pending
Review via email: mp+239675@code.qastaging.launchpad.net

Description of the change

Hooks failed if no network splits is set and enable https.
vips length should be larger than 0 and network_config should be checked before used if multinet is enabled.

To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) wrote :
Download full text (4.1 KiB)

Getting some unit test failures:

$ make test
Starting tests...
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................{u'DISTRIB_CODENAME': u'saucy', u'DISTRIB_RELEASE': u'13.10', u'DISTRIB_ID': u'Ubuntu', u'DISTRIB_DESCRIPTION': u'"Ubuntu Saucy Salamander (development branch)"'}
{u'DISTRIB_CODENAME': u'saucy', u'DISTRIB_RELEASE': u'13.10', u'DISTRIB_ID': u'Ubuntu', u'DISTRIB_DESCRIPTION': u'"Ubuntu Saucy Salamander (development branch)"'}
{u'DISTRIB_CODENAME': u'saucy', u'DISTRIB_RELEASE': u'13.10', u'DISTRIB_ID': u'Ubuntu', u'DISTRIB_DESCRIPTION': u'"Ubuntu Saucy Salamander (development branch)"'}
{u'DISTRIB_CODENAME': u'saucy', u'DISTRIB_RELEASE': u'13.10', u'DISTRIB_ID': u'Ubuntu', u'DISTRIB_DESCRIPTION': u'"Ubuntu Saucy Salamander (development branch)"'}
...............................................................................................................................................E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
F.E...................................
======================================================================
ERROR: Failure: OSError ([Errno 2] No such file or directory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/gizmo/Documents/reviews/charm-helpers/lp1385162/tests/fetch/test_giturl.py", line 8, in <module>
    from charmhelpers.fetch import (
  File "/home/gizmo/Documents/reviews/charm-helpers/lp1385162/charmhelpers/fetch/giturl.py", line 12, in <module>
    apt_install("python-git")
  File "/home/gizmo/Documents/reviews/charm-helpers/lp1385162/charmhelpers/fetch/__init__.py", line 157, in apt_install
    options))
  File "/home/gizmo/Documents/reviews/charm-helpers/lp1385162/charmhelpers/core/hookenv.py", line 67, in log
    subprocess.call(command)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_e...

Read more...

review: Needs Fixing
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Seems the above error is not caused by this patch I'm ok to let it through. Please fixup the minor nit below though (and same in https://code.launchpad.net/~xianghui/charms/trusty/keystone/lp1385162/+merge/239679).

Since this piece of code is identical to the chunk in keystone it would be nicer to have it pulled out of ApacheSSLContext.__call__() into a function that could be called by both...

review: Needs Fixing
247. By Xiang Hui

Fix minor issue.

248. By Xiang Hui

Sync lp:charm-helpers.

Revision history for this message
Xiang Hui (xianghui) wrote :

> Seems the above error is not caused by this patch I'm ok to let it through.
> Please fixup the minor nit below though (and same in https://code.launchpad.ne
> t/~xianghui/charms/trusty/keystone/lp1385162/+merge/239679).
>
> Since this piece of code is identical to the chunk in keystone it would be
> nicer to have it pulled out of ApacheSSLContext.__call__() into a function
> that could be called by both...
Good idea, but maybe it's better to do it in another branch to avoid side effect brought by refactor.

249. By Xiang Hui

Fetch apachessl context configuration as a method for other charms calling

250. By Xiang Hui

Fetch duplicate code with keystone canonical_name() in context.

Unmerged revisions

250. By Xiang Hui

Fetch duplicate code with keystone canonical_name() in context.

249. By Xiang Hui

Fetch apachessl context configuration as a method for other charms calling

248. By Xiang Hui

Sync lp:charm-helpers.

247. By Xiang Hui

Fix minor issue.

246. By Xiang Hui

Remove get_ifaces_cidr()

245. By Xiang Hui

network splits should be used with multi vips.

244. By Xiang Hui

Add get_ifaces_cidr().

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches