Why does adding a node to openstack via foreman fails with error "Error 400 on SERVER: network vlan ranges are invalid. on node"?
Issue
- Trying to add a compute node via foreman fails with below error.
# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/network.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/hamysql_active_node.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ipa_client_configured.rb
Info: Loading facts in /var/lib/puppet/lib/facter/netns_support.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: network vlan ranges are invalid. on node cmp10.pdplatform.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
- YAML dump for the host on foreman server is as below.
---
classes:
quickstack::neutron::compute:
admin_password: bfd6df75615c25bd1f51a699427fd773
ceilometer_metering_secret: a07cd9ab7bd30ea2b3b2459c04d7bc2f
ceilometer_user_password: 0473acf3df0bcfcc5caa584d17ea3bb0
cinder_backend_gluster: 'false'
controller_priv_host: 192.168.1.1
controller_pub_host: 10.56.174.8
enable_tunneling: 'False'
mysql_ca: /etc/ipa/ca.crt
mysql_host: 192.168.1.1
neutron_core_plugin: neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
neutron_db_password: a9426b066b67c02691adad36d1169715
neutron_user_password: 1969b0c1a2ef142671ee71b7be93420a
nova_db_password: b1814c6aff7207d9a2c87d58b93c7f25
nova_user_password: 1e7a7039797c0593a948e863fbdf1827
ovs_bridge_mappings:
- physnet1:br-ex
ovs_bridge_uplinks: []
ovs_tunnel_iface: eth3
ovs_tunnel_types: []
ovs_vlan_ranges: ! '["physnet1:181:181"]'
ovs_vxlan_udp_port: '4789'
qpid_host: 192.168.1.1
ssl: 'false'
tenant_network_type: vlan
tunnel_id_ranges: 1:1000
verbose: 'true'
parameters:
puppetmaster: foreman.domain.local
domainname: ! 'OpenStack: domain.local'
hostgroup: Compute (Neutron)
root_pw: $1$2n0cwzRH$oW8OmS3kN0IOp9QxsopbW.
puppet_ca: foreman.domain.local
foreman_env: production
environment: production
Environment
- Red Hat Enterprise Linux Openstack Platform v4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
