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

propagate host's AZ to containers #7796

Merged
merged 3 commits into from
Sep 5, 2017
Merged

propagate host's AZ to containers #7796

merged 3 commits into from
Sep 5, 2017

Conversation

dshcherb
Copy link

Description of change

pad.lv/1684325

Currently a provider-specific AZ is not propagated to containers
deployed on any provider - during container creation an empty
HardwareCharacteristics struct is initialized by a container manager.

It is important for certain applications to have this value exposed as
an environment variable in a hook context so that they can be
configured to be aware of physical placement with respect to failure
domains.

Given that provisioner has an ability to query machine state via
an apiserver facade, it is possible to get an availability zone for a
machine with a given tag. For that a new API call is introduced to query
that information.

QA steps

http://paste.ubuntu.com/25411702/

Documentation changes

Creates a new facade call AvailabilityZone which allows to query that field from hardware characteristics stored in state for a machine identified by a given tag.

Bug reference

https://bugs.launchpad.net/juju/+bug/1684325
https://bugs.launchpad.net/charm-ceph-osd/+bug/1684330

@dshcherb
Copy link
Author

!!build!!

2 similar comments
@dshcherb
Copy link
Author

!!build!!

@dshcherb
Copy link
Author

!!build!!

Dmitrii Shcherbakov added 3 commits August 31, 2017 14:46
pad.lv/1684325

Currently a provider-specific AZ is not propagated to containers
deployed on any provider - during container creation an empty
HardwareCharacteristics struct is initialized by a container manager.

It is important for certain applications to have this value exposed as
an environment variable in the hook context so that they can be
configured to be aware of physical placement with respect to failure
domains.

Given that provisioner has an ability to query machine state via
an apiserver facade, it is possible to get an availability zone for a
machine with a given tag. For that a new API call is introduced to query
that information.
agent and apiserver side tests + a test for availability zone retrieval
and a container AZ test
Given that there is an additional step to retrieve host hardware
characteristics we error out earlier than before and do not receive the
same error message.

For this reason the expected result was changed and the test was
renamed.
@anastasiamac
Copy link
Contributor

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Sep 5, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit d04e4e4 into juju:2.2 Sep 5, 2017
@dshcherb dshcherb deleted the 2.2 branch September 6, 2017 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants