settingsLogin | Registersettings

[Openstack-operators] OpenStack Install - Help

0 votes

Guys,

Moving forward on the installation process, I've got a new error:

root@ubuntu:/opt/openstack-ansible/playbooks# openstack-ansible setup-hosts.yml

openstack-ansible setup-hosts.yml

Variable files: "-e @/etc/openstackdeploy/usersecrets.yml -e
@/etc/openstackdeploy/uservariables.yml "

ERROR! The file inventory/dynamic_inventory.py is marked as
executable, but failed to execute correctly. If this is not supposed
to be an executable script, correct this with chmod -x inventory/dynamic_inventory.py.

Inventory script (inventory/dynamic_inventory.py) had an execution
error: Traceback (most recent call last):

File "/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py",
line 1304, in

output = main(**all_args)

File "/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py",
line 1229, in main

environment.get('container_skel')

File "/opt/openstack-ansible/playbooks/inventory/dynamicinventory.py",
line 1091, in _check
config_settings

_check_same_ip_to_multiple_host(config)

File "/opt/openstack-ansible/playbooks/inventory/dynamicinventory.py",
line 1008, in _check
sameiptomultiplehost

raise MultipleHostsWithOneIPError(*info)

main.MultipleHostsWithOneIPError: Both host:compute1 and
host:infra1 have address:200.49.47.167 assigned. Cannot assign same
ip to both hosts

inventory/dynamic_inventory.py:18: Expected key=value host variable
assignment, got: argparse

=========================

And this is the content of my
/etc/openstackdeploy/openstackuser_config.yml file.

=========================


cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22

used_ips:
- "172.29.236.1,172.29.236.50"
- "172.29.240.1,172.29.240.50"
- "172.29.244.1,172.29.244.50"
- "172.29.248.1,172.29.248.50"

globaloverrides:
internal
lbvipaddress: A.B.C.D
externallbvipaddress: openstack.zimus.io
tunnel
bridge: "br-vxlan"
managementbridge: "br-mgmt"
provider
networks:
- network:
containerbridge: "br-mgmt"
container
type: "veth"
containerinterface: "eth1"
ip
fromq: "container"
type: "raw"
group
binds:
- allcontainers
- hosts
is
containeraddress: true
is
sshaddress: true
- network:
container
bridge: "br-vxlan"
containertype: "veth"
container
interface: "eth10"
ipfromq: "tunnel"
type: "vxlan"
range: "1:1000"
netname: "vxlan"
group
binds:
- neutronlinuxbridgeagent
- network:
containerbridge: "br-vlan"
container
type: "veth"
containerinterface: "eth12"
host
bindoverride: "eth12"
type: "flat"
net
name: "flat"
groupbinds:
- neutron
linuxbridgeagent
- network:
container
bridge: "br-vlan"
containertype: "veth"
container
interface: "eth11"
type: "vlan"
range: "1:1"
netname: "vlan"
group
binds:
- neutronlinuxbridgeagent
- network:
containerbridge: "br-storage"
container
type: "veth"
containerinterface: "eth2"
ip
fromq: "storage"
type: "raw"
group
binds:
- glanceapi
- cinder
api
- cindervolume
- nova
compute

#

Infrastructure

#

galera, memcache, rabbitmq, utility

shared-infra_hosts:
infra1:
ip: A.B.C.D

repository (apt cache, python packages, etc)

repo-infra_hosts:
infra1:
ip: A.B.C.D

load balancer

haproxy_hosts:
infra1:
ip: A.B.C.D

#

OpenStack

#

keystone

identity_hosts:
infra1:
ip: A.B.C.D

cinder api services

storage-infra_hosts:
infra1:
ip: A.B.C.D

glance

image_hosts:
infra1:
ip: A.B.C.D

nova api, conductor, etc services

compute-infra_hosts:
infra1:
ip: A.B.C.D

heat

orchestration_hosts:
infra1:
ip: A.B.C.D

horizon

dashboard_hosts:
infra1:
ip: A.B.C.D

neutron server, agents (L3, etc)

network_hosts:
infra1:
ip: A.B.C.D

nova hypervisors

compute_hosts:
compute1:
ip: A.B.C.D

cinder storage host (LVM-backed)

storagehosts:
storage1:
ip: A.B.C.D
container
vars:
cinderbackends:
limit
containertypes: cindervolume
lvm:
volumegroup: cinder-volumes
volume
driver: cinder.volume.drivers.lvm.LVMVolumeDriver
volumebackendname: LVMiSCSI
iscsi
ip_address: "10.196.188.10"

=========================

Since I was unable to boot normally using all bridge config 1 - see
related thread - I'm not sure if it could have caused this error.

Any idea?

Thanks a lot.

BR,

R


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
asked Nov 7, 2016 in openstack-operators by Rafael_Azevedo (320 points)   1 1

1 Response

0 votes

Hi,

it sounds somewhat-obvious from ‘MultipleHostsWithOneIPError’ , but you have defined same IP address for infra1, compute1 and storage1.
According to your yaml definition file those are defined to be 3 physical machines/3 VMs and they can’t have same IP address.

It is fairly-likely that your intent is actually to use All-in-one setup.
As I remember this is default user_variables.yaml, but also you can check template in repo, [1]
(=there aio1 is used as machine for all roles)

BR,
Konstantin
[1] https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/openstack_user_config.yml.aio https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/openstack_user_config.yml.aio

On Nov 7, 2016, at 9:20 PM, Rafael Azevedo raffus@gmail.com wrote:

Guys,

Moving forward on the installation process, I've got a new error:

root@ubuntu:/opt/openstack-ansible/playbooks# openstack-ansible setup-hosts.yml

openstack-ansible setup-hosts.yml

Variable files: "-e @/etc/openstackdeploy/usersecrets.yml -e
@/etc/openstackdeploy/uservariables.yml "

ERROR! The file inventory/dynamic_inventory.py is marked as
executable, but failed to execute correctly. If this is not supposed
to be an executable script, correct this with chmod -x inventory/dynamic_inventory.py.

Inventory script (inventory/dynamic_inventory.py) had an execution
error: Traceback (most recent call last):

File "/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py",
line 1304, in

output = main(**all_args)

File "/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py",
line 1229, in main

environment.get('container_skel')

File "/opt/openstack-ansible/playbooks/inventory/dynamicinventory.py",
line 1091, in _check
config_settings

checksameiptomultiplehost(config)

File "/opt/openstack-ansible/playbooks/inventory/dynamicinventory.py",
line 1008, in _check
sameiptomultiplehost

raise MultipleHostsWithOneIPError(*info)

main.MultipleHostsWithOneIPError: Both host:compute1 and
host:infra1 have address:200.49.47.167 assigned. Cannot assign same
ip to both hosts

inventory/dynamic_inventory.py:18: Expected key=value host variable
assignment, got: argparse

=========================

And this is the content of my
/etc/openstackdeploy/openstackuser_config.yml file.

=========================


cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22

used_ips:
- "172.29.236.1,172.29.236.50"
- "172.29.240.1,172.29.240.50"
- "172.29.244.1,172.29.244.50"
- "172.29.248.1,172.29.248.50"

globaloverrides:
internal
lbvipaddress: A.B.C.D
externallbvipaddress: openstack.zimus.io
tunnel
bridge: "br-vxlan"
managementbridge: "br-mgmt"
provider
networks:
- network:
containerbridge: "br-mgmt"
container
type: "veth"
containerinterface: "eth1"
ip
fromq: "container"
type: "raw"
group
binds:
- allcontainers
- hosts
is
containeraddress: true
is
sshaddress: true
- network:
container
bridge: "br-vxlan"
containertype: "veth"
container
interface: "eth10"
ipfromq: "tunnel"
type: "vxlan"
range: "1:1000"
netname: "vxlan"
group
binds:
- neutronlinuxbridgeagent
- network:
containerbridge: "br-vlan"
container
type: "veth"
containerinterface: "eth12"
host
bindoverride: "eth12"
type: "flat"
net
name: "flat"
groupbinds:
- neutron
linuxbridgeagent
- network:
container
bridge: "br-vlan"
containertype: "veth"
container
interface: "eth11"
type: "vlan"
range: "1:1"
netname: "vlan"
group
binds:
- neutronlinuxbridgeagent
- network:
containerbridge: "br-storage"
container
type: "veth"
containerinterface: "eth2"
ip
fromq: "storage"
type: "raw"
group
binds:
- glanceapi
- cinder
api
- cindervolume
- nova
compute

#

Infrastructure

#

galera, memcache, rabbitmq, utility

shared-infra_hosts:
infra1:
ip: A.B.C.D

repository (apt cache, python packages, etc)

repo-infra_hosts:
infra1:
ip: A.B.C.D

load balancer

haproxy_hosts:
infra1:
ip: A.B.C.D

#

OpenStack

#

keystone

identity_hosts:
infra1:
ip: A.B.C.D

cinder api services

storage-infra_hosts:
infra1:
ip: A.B.C.D

glance

image_hosts:
infra1:
ip: A.B.C.D

nova api, conductor, etc services

compute-infra_hosts:
infra1:
ip: A.B.C.D

heat

orchestration_hosts:
infra1:
ip: A.B.C.D

horizon

dashboard_hosts:
infra1:
ip: A.B.C.D

neutron server, agents (L3, etc)

network_hosts:
infra1:
ip: A.B.C.D

nova hypervisors

compute_hosts:
compute1:
ip: A.B.C.D

cinder storage host (LVM-backed)

storagehosts:
storage1:
ip: A.B.C.D
container
vars:
cinderbackends:
limit
containertypes: cindervolume
lvm:
volumegroup: cinder-volumes
volume
driver: cinder.volume.drivers.lvm.LVMVolumeDriver
volumebackendname: LVMiSCSI
iscsi
ip_address: "10.196.188.10"

=========================

Since I was unable to boot normally using all bridge config [1] - see
related thread - I'm not sure if it could have caused this error.

Any idea?

Thanks a lot.

BR,

R

[1]: http://lists.openstack.org/pipermail/openstack-operators/2016-November/011986.html


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Nov 8, 2016 by Kostyantyn_Volenbovs (580 points)  
...