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

neutron recipes on compute nodes should not look at attributes from neutron-server nodes #11

Open
4 of 5 tasks
vuntz opened this issue Feb 22, 2017 · 6 comments
Open
4 of 5 tasks

Comments

@vuntz
Copy link

vuntz commented Feb 22, 2017

It could be that an attribute gets added in a migration to the neutron proposal, and this will become visible on the neutron-server node only when chef has run. However, if chef runs on compute nodes first, it will not find the attribute. This could result in the wrong config on the compute nodes for a period of time.

The fix is to adopt the data bag config item work, and extend it (see crowbar#718)

Backport Databag work

Fix the issue

  • @vuntz could you provide some description what would be the work to be done?
@vuntz
Copy link
Author

vuntz commented Mar 30, 2017

@vuntz could you provide some description what would be the work to be done?

If you look at the neutron cookbook, you'll see some recipes which are run on compute nodes too. These ones are the problematic ones. We do something like neutron = search node with role neutron-server; but in case a schema migration happened and chef hasn't run yet on the neutron-server, the attributes will be wrong. So we should instead do something like neutron = Role.load("neutron-config-default") and read the attributes directly from the role.

@vuntz
Copy link
Author

vuntz commented Mar 30, 2017

Note that this is a bit of a special case: usually, the data bag config item that you backported would be enough; but the problem is that the recipes need to look at, basically, all attributes of the proposal. Which is way more than what the data bag config item contains.

Of course, one alternative is to make the data bag config item contain a copy of the attributes.

@tpatzig
Copy link

tpatzig commented Jun 8, 2017

I think #34 is the same, @vuntz do you agree?

@vuntz
Copy link
Author

vuntz commented Jul 11, 2017

I think #34 is the same, @vuntz do you agree?

Not completely, unfortunatel.

@vuntz
Copy link
Author

vuntz commented Jul 11, 2017

@mkoderer this is a true issue, but also a very edge case that wouldn't occur again unless more attributes are added to the neutron barclamp. I'm tempted to drop the critical tag here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants