[fuel-plugin-standalone-ceph] With a custom hostname, a host can not be identified as compute role

Bug #1595415 reported by ZHI BING WANG
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
New
Undecided
Unassigned
Fuel for OpenStack
Invalid
High
Pavel Chechetin

Bug Description

Deployment on compute will fail at this:
/etc/puppet/modules/osnailyfacter/modular/ceph/ceph_compute.pp

with error:
root@b13-38-tsn:/etc/puppet/modules/osnailyfacter/modular/ceph# puppet apply ceph_compute.pp
Notice: Scope(Class[main]): MODULAR: astute/ceph_compute.pp
Warning: Scope(Class[main]): Could not look up qualified variable '::ceph::params::service_nova_compute'; class ::ceph::params has not been evaluated
Warning: Scope(Class[Ceph::Nova_compute]): Could not look up qualified variable '::ceph::params::libvirt_service_name'; class ::ceph::params has not been evaluated
Warning: Scope(Class[main]): Could not look up qualified variable '::ceph::params::service_nova_compute'; class ::ceph::params has not been evaluated
Warning: Scope(Class[main]): Could not look up qualified variable '::ceph::params::service_nova_compute'; class ::ceph::params has not been evaluated
Error: Could not find resource 'Class[Ceph::Conf]' for relationship on 'Class[Ceph::Ephemeral]' on node b13-38-tsn.domain.tld
Error: Could not find resource 'Class[Ceph::Conf]' for relationship on 'Class[Ceph::Ephemeral]' on node b13-38-tsn.domain.tld

To test with 111.pp, it can not pass the roles_include check:

root@b19-38-tsn:/etc/puppet/modules/ceph/manifests# puppet apply 111.pp
Notice: Compiled catalog for b19-38-tsn.domain.tld in environment production in 0.10 seconds
Notice: /Stage[main]/Main/Exec[this will output the roles]/returns: ["compute"]
Notice: /Stage[main]/Main/Exec[this will output the roles]/returns: executed successfully
Notice: Finished catalog run in 0.29 seconds

root@b19-38-tsn:/etc/puppet/modules/ceph/manifests# cat 111.pp
exec { 'this will output the roles':
  path => '/usr/bin',
  command => 'hiera roles',
  logoutput => true,
}
if roles_include(['primary-controller', 'controller', 'ceph-mon', 'ceph-osd', 'compute', 'cinder']) { notify { '111': } }

This issue is systematic.

MOS 7, with standalone ceph plugin

id | name | version | package_version
---|-----------------------------|---------|----------------
1 | backup | 1.1.0 | 2.0.0
2 | contrail | 3.0.0 | 3.0.0
5 | ldap | 1.0.0 | 3.0.0
8 | openldap | 1.2.0 | 3.0.0
10 | lma_infrastructure_alerting | 0.8.1 | 3.0.0
9 | standalone-ceph | 1.0.2 | 3.0.0
11 | lma_collector | 0.8.1 | 3.0.0
12 | influxdb_grafana | 0.8.1 | 3.0.0
13 | elasticsearch_kibana | 0.8.1 | 3.0.0

[root@fuel ~]# fuel fuel-version

api: '1.0'
astute_sha: 6c5b73f93e24cc781c809db9159927655ced5012
auth_required: true
build_id: '301'
build_number: '301'
feature_groups:
- mirantis
fuel-agent_sha: 50e90af6e3d560e9085ff71d2950cfbcca91af67
fuel-library_sha: 5d50055aeca1dd0dc53b43825dc4c8f7780be9dd
fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
fuel-ostf_sha: 2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c
fuelmain_sha: a65d453215edb0284a2e4761be7a156bb5627677
nailgun_sha: 4162b0c15adb425b37608c787944d1983f543aa8
openstack_version: 2015.1.0-7.0
production: docker
python-fuelclient_sha: 486bde57cda1badb68f915f66c61b544108606f3
release: '7.0'
release_versions:
  2015.1.0-7.0:
    VERSION:
      api: '1.0'
      astute_sha: 6c5b73f93e24cc781c809db9159927655ced5012
      build_id: '301'
      build_number: '301'
      feature_groups:
      - mirantis
      fuel-agent_sha: 50e90af6e3d560e9085ff71d2950cfbcca91af67
      fuel-library_sha: 5d50055aeca1dd0dc53b43825dc4c8f7780be9dd
      fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
      fuel-ostf_sha: 2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c
      fuelmain_sha: a65d453215edb0284a2e4761be7a156bb5627677
      nailgun_sha: 4162b0c15adb425b37608c787944d1983f543aa8
      openstack_version: 2015.1.0-7.0
      production: docker
      python-fuelclient_sha: 486bde57cda1badb68f915f66c61b544108606f3
      release: '7.0'

Revision history for this message
ZHI BING WANG (zwang) wrote :

it is with MU 3.

Changed in fuel:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
milestone: none → 10.0
tags: added: area-library
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Oleksiy Molchanov (omolchanov)
Revision history for this message
ZHI BING WANG (zwang) wrote : Re: With a custom hostname, a host can not be identified as compute role

To reproduce it, I guess you will need :

MOS 7,
standalone-ceph plugin

1 controller
1 ceph-mon
1 compute

The compute host uses a custom hostname
for example:
fuel node --node 26 --hostname compute-26

Changed in fuel:
assignee: Oleksiy Molchanov (omolchanov) → Pavel Chechetin (paulche)
Revision history for this message
Michael Polenchuk (mpolenchuk) wrote :

There is no roles_include() function in 7.0

Dmitry Pyzhov (dpyzhov)
tags: added: 9.1-proposed
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/mitaka
Changed in fuel:
status: Confirmed → Invalid
summary: - With a custom hostname, a host can not be identified as compute role
+ [fuel-plugin-standalone-ceph] With a custom hostname, a host can not be
+ identified as compute role
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.