-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add entry-scale-ironic-flat-network scenario to openstack-ardana #3104
Open
mital-suse
wants to merge
2
commits into
SUSE-Cloud:master
Choose a base branch
from
mital-suse:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
|
||
vrrp_offset: 6 |
48 changes: 48 additions & 0 deletions
48
...a/ansible/roles/input_model_generator/templates/input_model/data/ironic/ironic_config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# (c) Copyright 2016 Hewlett Packard Enterprise Development LP | ||
# (c) Copyright 2017-2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
product: | ||
version: 2 | ||
|
||
# This example is based on using a flat provider guest network as the | ||
# cleaning network for ironic nodes to use. | ||
# | ||
# This network must be created by neutron. | ||
|
||
configuration-data: | ||
- name: IRONIC-CONFIG-CP1 | ||
services: | ||
- ironic | ||
data: | ||
# Set enable_node_cleaning to false to disable node cleaning by Ironic. | ||
cleaning_network: guest-network | ||
enable_node_cleaning: true | ||
# Set enable_oneview to true to enable oneview for ironic. | ||
enable_oneview: false | ||
# Provide encrypted oneview password encryption can be done | ||
# using ardanaencrypt.py or using openssl and export the key | ||
# as environement variable 'ARDANA_USER_PASSWORD_ENCRYPT_KEY' | ||
oneview_manager_url: | ||
oneview_username: | ||
oneview_encrypted_password: | ||
oneview_allow_insecure_connections: | ||
tls_cacert_file: | ||
# Set enable_agent_drivers to false if swift is disabled | ||
enable_agent_drivers: true | ||
# Enable boot from volume, by setting the enabled_storage_interfaces to | ||
# 'cinder' in Ironic config file | ||
boot_from_volume_enabled: false |
37 changes: 37 additions & 0 deletions
37
...nkins/ardana/ansible/roles/input_model_generator/vars/entry-scale-ironic-flat-network.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
|
||
controllers: 3 | ||
sles_computes: 0 | ||
rhel_computes: 0 | ||
|
||
scenario: | ||
name: entry-scale-ironic-flat-network | ||
cloud_name: entry-scale | ||
description: > | ||
entry scale cloud that uses the Ironic service to provision physical machines through the Compute services API | ||
{{ clm_model }} CLM node and {{ ironic_compute }} IRONIC-COMPUTE node | ||
audit_enabled: True | ||
ses_enabled: "{{ ses_enabled | default(False) }}" | ||
use_cinder_volume_disk: True | ||
use_glance_cache_disk: False | ||
availability_zones: "{{ availability_zones }}" | ||
|
||
service_template: ironic | ||
network_template: ironic | ||
interface_template: ironic | ||
disk_template: ironic |
22 changes: 22 additions & 0 deletions
22
scripts/jenkins/ardana/ansible/roles/input_model_generator/vars/templates/disk/ironic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
|
||
disk_models: | ||
volume_groups: | ||
- name: ardana-vg | ||
disk_components: | ||
- OS |
43 changes: 43 additions & 0 deletions
43
...ts/jenkins/ardana/ansible/roles/input_model_generator/vars/templates/interface/ironic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
|
||
interface_models: | ||
- name: CLM | ||
service_groups: | ||
- clm | ||
network_interfaces: | ||
- network_groups: | ||
- MANAGEMENT | ||
forced_network_groups: | ||
- EXTERNAL-API | ||
|
||
- name: CONTROLLER | ||
service_groups: | ||
- controller | ||
network_interfaces: | ||
- network_groups: | ||
- EXTERNAL-API | ||
- GUEST | ||
- MANAGEMENT | ||
|
||
- name: IRONIC-COMPUTE | ||
service_groups: | ||
- ironic-compute | ||
network_interfaces: | ||
- network_groups: | ||
- GUEST | ||
- MANAGEMENT |
42 changes: 42 additions & 0 deletions
42
scripts/jenkins/ardana/ansible/roles/input_model_generator/vars/templates/network/ironic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--- | ||
|
||
network_groups: | ||
- name: MANAGEMENT | ||
hostname_suffix: mgmt | ||
tagged_vlan: false | ||
component_endpoints: | ||
- MANAGEMENT | ||
- INTERNAL-API | ||
|
||
- name: EXTERNAL-API | ||
hostname_suffix: extapi | ||
tagged_vlan: true | ||
component_endpoints: | ||
- EXTERNAL-API | ||
routes: | ||
- default | ||
|
||
- name: GUEST | ||
hostname_suffix: guest | ||
tagged_vlan: true | ||
component_endpoints: | ||
- NEUTRON-EXT | ||
|
||
- name: ILO | ||
hostname_suffix: ilo | ||
component_endpoints: [] |
55 changes: 55 additions & 0 deletions
55
scripts/jenkins/ardana/ansible/roles/input_model_generator/vars/templates/service/ironic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# (c) Copyright 2018 SUSE LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# | ||
# Standard scenario service template with standalone CLM node: all services enabled | ||
# and variable number of controller, SLES compute and RHEL compute nodes. | ||
# | ||
# Template parameters: | ||
# controllers: number of controller nodes (default: 3) | ||
# ironic_compute: number of ironic compute nodes (default: 1) | ||
# | ||
--- | ||
|
||
service_groups: | ||
- name: clm | ||
type: cluster | ||
prefix: c0 | ||
heat_flavor_id: "{{ vcloud_flavor_name_prefix }}-compute" | ||
member_count: '{{ (clm_model == "standalone") | ternary(1, 0) }}' | ||
service_components: | ||
- lifecycle-manager | ||
- name: controller | ||
type: cluster | ||
prefix: c1 | ||
heat_flavor_id: "{{ vcloud_flavor_name_prefix }}-controller" | ||
member_count: '{{ controllers|default(3) }}' | ||
service_components: | ||
- '{{ (clm_model == "integrated") | ternary("CLM", '') }}' | ||
- CORE | ||
- LMM | ||
- DBMQ | ||
- SWPAC | ||
- NEUTRON | ||
- SWOBJ | ||
- IRONIC | ||
- name: ironic-compute | ||
type: resource | ||
prefix: ir-comp | ||
heat_flavor_id: "{{ vcloud_flavor_name_prefix }}-compute" | ||
member_count: '{{ ironic_computes|default(1) }}' | ||
min_count: 1 | ||
service_components: | ||
- IRONIC-COMPUTE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you don't need SLES and RHEL computes with this input model scenario, you can delete these and replace them with a default value (1 ?) for your
ironic_computes
variable.