Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure python3-hvac is installed for charms with encypt option #431

Merged
merged 1 commit into from Feb 19, 2020

Conversation

ajkavanagh
Copy link
Collaborator

The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True. Hence the charm crashes. This resolves that crash.

The VautlKVContext()() returns {} if the hvac module isn't isntalled,
which essentially deactivates it.

Closes-bug: #1862085

The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True.  Hence the charm crashes.  This resolves that crash.

The VautlKVContext()() returns {} if the hvac module isn't isntalled,
which essentially deactivates it.

Closes-bug: #1862085
Copy link
Contributor

@fnordahl fnordahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fnordahl fnordahl merged commit a845b73 into juju:master Feb 19, 2020
openstack-gerrit pushed a commit to openstack/charm-swift-storage that referenced this pull request Feb 20, 2020
The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True.  Hence the charm crashes.  This resolves that crash.

Note the related charm-helpers fix [1].

[1]: juju/charm-helpers#431

Change-Id: I92773b7c1f48d456091062751e69581fabe4c5f3
Closes-bug: #1862085
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Feb 20, 2020
* Update charm-swift-storage from branch 'master'
  - Merge "Ensure python3-hvac is installed for charms with encypt option"
  - Ensure python3-hvac is installed for charms with encypt option
    
    The referenced bug is essentially: make vault:secrets relation to vault
    but keep the 'encrypt' option as False. In this case, the Context
    handling code in charm-helpers is expecting python3-hvac to be
    available, but it is only installed if the encrypt option is set to
    True.  Hence the charm crashes.  This resolves that crash.
    
    Note the related charm-helpers fix [1].
    
    [1]: juju/charm-helpers#431
    
    Change-Id: I92773b7c1f48d456091062751e69581fabe4c5f3
    Closes-bug: #1862085
openstack-gerrit pushed a commit to openstack/charm-ceph-osd that referenced this pull request Feb 20, 2020
The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True.  Hence the charm crashes.  This resolves that crash.

Note the related charm-helpers fix [1].

[1]: juju/charm-helpers#431

Change-Id: I9cb60a9340554c91668272b46f7c2dcf9f0ac2d1
Closes-bug: #1862085
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Feb 20, 2020
* Update charm-ceph-osd from branch 'master'
  - Merge "Ensure python3-hvac is installed for charms with encypt option"
  - Ensure python3-hvac is installed for charms with encypt option
    
    The referenced bug is essentially: make vault:secrets relation to vault
    but keep the 'encrypt' option as False. In this case, the Context
    handling code in charm-helpers is expecting python3-hvac to be
    available, but it is only installed if the encrypt option is set to
    True.  Hence the charm crashes.  This resolves that crash.
    
    Note the related charm-helpers fix [1].
    
    [1]: juju/charm-helpers#431
    
    Change-Id: I9cb60a9340554c91668272b46f7c2dcf9f0ac2d1
    Closes-bug: #1862085
openstack-gerrit pushed a commit to openstack/charm-nova-compute that referenced this pull request Feb 20, 2020
The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True.  Hence the charm crashes.  This resolves that crash.

Note the related charm-helpers fix [1].

[1]: juju/charm-helpers#431

Change-Id: Ic02d4d4d3c3b423fa28cd171b126ed4a444fc646
Closes-bug: #1862085
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Feb 20, 2020
* Update charm-nova-compute from branch 'master'
  - Merge "Ensure python3-hvac is installed for charms with encypt option"
  - Ensure python3-hvac is installed for charms with encypt option
    
    The referenced bug is essentially: make vault:secrets relation to vault
    but keep the 'encrypt' option as False. In this case, the Context
    handling code in charm-helpers is expecting python3-hvac to be
    available, but it is only installed if the encrypt option is set to
    True.  Hence the charm crashes.  This resolves that crash.
    
    Note the related charm-helpers fix [1].
    
    [1]: juju/charm-helpers#431
    
    Change-Id: Ic02d4d4d3c3b423fa28cd171b126ed4a444fc646
    Closes-bug: #1862085
@ajkavanagh ajkavanagh deleted the bug/1862085 branch July 27, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants