Merge lp://qastaging/~free.ekanayaka/landscape-charm/pre-install-hooks into lp://qastaging/~landscape/landscape-charm/trunk

Proposed by Free Ekanayaka
Status: Merged
Merged at revision: 292
Proposed branch: lp://qastaging/~free.ekanayaka/landscape-charm/pre-install-hooks
Merge into: lp://qastaging/~landscape/landscape-charm/trunk
Diff against target: 104 lines (+70/-1)
2 files modified
lib/install.py (+17/-1)
lib/tests/test_install.py (+53/-0)
To merge this branch: bzr merge lp://qastaging/~free.ekanayaka/landscape-charm/pre-install-hooks
Reviewer Review Type Date Requested Status
Chad Smith Approve
🤖 Landscape Builder test results Needs Fixing
Adam Collard (community) Approve
Review via email: mp+260426@code.qastaging.launchpad.net

Commit message

Add support for pre-install hooks, which are conventionally located at exec.d/*/charm-pre-install.

Description of the change

Add support for pre-install hooks, which are conventionally located at exec.d/*/charm-pre-install.

This is required by IS in order to deploy to prodstack, see:

https://wiki.canonical.com/InformationInfrastructure/DevOps#Install.2BAC8-support_basenode_in_your_charm

To post a comment you must log in.
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

Command: make ci-test
Result: Success
Revno: 291
Branch: lp:~free.ekanayaka/landscape-charm/pre-install-hooks
Jenkins: https://ci.lscape.net/job/latch-test/1068/

review: Approve (test results)
Revision history for this message
Adam Collard (adam-collard) wrote :

Minor suggestion inline.

review: Approve
292. By Free Ekanayaka

Address review comments

Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :
Download full text (15.7 KiB)

Command: make ci-test
Result: Fail
Revno: 292
Branch: lp:~free.ekanayaka/landscape-charm/pre-install-hooks
Jenkins: https://ci.lscape.net/job/latch-test/1073/
-------------------------------------------
./dev/ubuntu-deps
Reading package lists...
Building dependency tree...
Reading state information...
software-properties-common is already the newest version.
The following package was automatically installed and is no longer required:
  os-prober
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
gpg: keyring `/tmp/tmpxhke205z/secring.gpg' created
gpg: keyring `/tmp/tmpxhke205z/pubring.gpg' created
gpg: requesting key C8068B11 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpxhke205z/trustdb.gpg: trustdb created
gpg: key C8068B11: public key "Launchpad Ensemble PPA" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://ppa.launchpad.net trusty Release.gpg
Ign http://archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security Release
Hit http://ppa.launchpad.net trusty Release
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates Release.gpg
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty-updates Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Ign https://private-ppa.launchpad.net trusty InRelease
Ign https://private-ppa.launchpad.net trusty InRelease
Hit https://private-ppa.launchpad.net trusty Release.gpg
Hit https://private-ppa.launchpad.net trusty Release.gpg
Hit https://private-ppa.launchpad.net trusty Release
Hit https://private-ppa.launchpad.net trusty Release
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit https://private-ppa.launchpad.net trusty/main amd64 Packages
Hit https://private-ppa.launchpad.net ...

review: Needs Fixing (test results)
Revision history for this message
Chad Smith (chad.smith) wrote :

Couple of minor points and a request for either an extended unit test or additional unit tests for fail case and ignore case for the CHARM_PRE_INSTALL_PATTERN.

review: Approve
293. By Free Ekanayaka

Merge from trunk

294. By Free Ekanayaka

Address review comments

Revision history for this message
Free Ekanayaka (free.ekanayaka) :
Revision history for this message
Free Ekanayaka (free.ekanayaka) :

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