Merge ~smoser/cloud-init:bug/1675349-openstack-finnish-nebula into cloud-init:master

Proposed by Scott Moser
Status: Merged
Merged at revision: dab9d6e0e92c7c933d86a0f696504fad2cebbda7
Proposed branch: ~smoser/cloud-init:bug/1675349-openstack-finnish-nebula
Merge into: cloud-init:master
Diff against target: 21 lines (+7/-2)
1 file modified
tools/ds-identify (+7/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
cloud-init Commiters Pending
Review via email: mp+321104@code.launchpad.net

Commit message

OpenStack: identify OpenStack by product 'OpenStack Compute'.

OpenStack clouds installed with RedHat RDO have the nova product
configured in /etc/nova/release to be 'OpenStack Compute' rather than
upstream nova default of 'OpenStack Nova'.

This was first reported on Finnish provider Nebula (http://nebula.fi).

LP: #1675349

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tools/ds-identify b/tools/ds-identify
2index 15d6600..3010634 100755
3--- a/tools/ds-identify
4+++ b/tools/ds-identify
5@@ -795,10 +795,15 @@ dscheck_OpenStack() {
6 if [ $? -eq ${DS_FOUND} ]; then
7 return ${DS_NOT_FOUND}
8 fi
9- if dmi_product_name_is "OpenStack Nova"; then
10+ local nova="OpenStack Nova" compute="OpenStack Compute"
11+ if dmi_product_name_is "$nova"; then
12 return ${DS_FOUND}
13 fi
14- if [ "${DI_PID_1_PLATFORM}" = "OpenStack Nova" ]; then
15+ if dmi_product_name_is "$compute"; then
16+ # RDO installed nova (LP: #1675349).
17+ return ${DS_FOUND}
18+ fi
19+ if [ "${DI_PID_1_PLATFORM}" = "$nova" ]; then
20 return ${DS_FOUND}
21 fi
22

Subscribers

People subscribed via source and target branches