-
Notifications
You must be signed in to change notification settings - Fork 10
"neutron net-list" : deprecated and wrong return code #2
Description
Hi,
First thx a lot for your work, I don't have yet a functionnal openstack PIKE cluster, but from what I saw everything is clear and simple.
Please let me share with you some info you should maybe consider, and one issue I have.
- I needed to modify line 101 of roles/database/tasks/main.yml
from:
"shell: rabbitmqctl cluster_status | grep running_nodes | grep {{ item }}"
to:
"shell: rabbitmqctl cluster_status | grep {{ item }}"
to have my deployment working. I was setting up a 3 nodes cluster, and when I do "rabbitmqctl cluster_status" from each node, the related hostname was not in the same line (it was in "running nodes" section, but on the line just after).
Example from my node openstack-1:
#rabbitmqctl cluster_status
Cluster status of node 'rabbit@openstack-1' ...
[{nodes,[{disc,['rabbit@openstack-1']},
{ram,['rabbit@openstack-3','rabbit@openstack-2']}]},
{running_nodes,['rabbit@openstack-3','rabbit@openstack-2',
'rabbit@openstack-1']},
{cluster_name,<<"rabbit@openstack-3.mydomain">>},
and from my node openstack-2:
#rabbitmqctl cluster_status
Cluster status of node 'rabbit@openstack-2' ...
[{nodes,[{disc,['rabbit@openstack-1']},
{ram,['rabbit@openstack-3','rabbit@openstack-2']}]},
{running_nodes,['rabbit@openstack-3','rabbit@openstack-1',
'rabbit@openstack-2']},
{cluster_name,<<"rabbit@openstack-3.mydomain">>},
{partitions,[]},
{alarms,[{'rabbit@openstack-3',[]},
{'rabbit@openstack-1',[]},
{'rabbit@openstack-2',[]}]}]
So I agree the change I did is really dirty but it was a simple workaround for me.
- now I have real issue with some others things: the neutron commands, which is now deprecated and never return anything. (return code is not 0)
Example:
grep "neutron " roles/neutron/tasks/controller.yml | grep "command"
- command: "openstack role add --project service --user neutron admin"
- command: "openstack service create --name neutron --description 'OpenStack Networking' network"
command: "neutron net-list"
- command: "neutron net-create --shared --provider:physical_network {{ provider_network }} --provider:network_type flat {{ provider_network }} --router:external True"
- command: "neutron subnet-create --name {{ provider_network }} --allocation-pool {{ provider_allocation_pool }} --dns-nameserver {{ provider_nameserver }} --gateway {{ provider_gateway }} {{ provider_network }} {{ provider_network_cidr }}"
- command: "neutron net-create {{ selfservice_network }}"
- command: "neutron subnet-create --name {{ selfservice_network }} --dns-nameserver {{ selfservice_nameserver }} --gateway {{ selfservice_gateway }} {{ selfservice_network }} {{ selfservice_network_cidr }}"
- command: "neutron router-create router"
- command: "neutron router-interface-add router {{ selfservice_network }}"
- command: "neutron router-gateway-set router {{ provider_network }}"
all the commands "neutron something" are not working anymore so impossible to run the playbook.
Do you have any change to commit about that?
Thx a lot in advance