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
Algo fails to deploy on OpenStack (DreamCompute optimised) #14708
Comments
diff --git a/roles/cloud-openstack/tasks/main.yml b/roles/cloud-openstack/tasks/main.yml
index ac6cbd3..0796e8e 100644
--- a/roles/cloud-openstack/tasks/main.yml
+++ b/roles/cloud-openstack/tasks/main.yml
@@ -16,7 +16,7 @@
- name: Security rules created
openstack.cloud.security_group_rule:
state: "{{ state|default('present') }}"
- security_group: "{{ os_security_group.id }}"
+ security_group: "{{ os_security_group.security_group.id }}"
protocol: "{{ item.proto }}"
port_range_min: "{{ item.port_min }}"
port_range_max: "{{ item.port_max }}"
@@ -40,7 +40,7 @@
- name: Set image as a fact
set_fact:
image_id: "{{ item.id }}"
- loop: "{{ os_image.openstack_image }}"
+ loop: "{{ os_image.images }}"
when:
- item.name == cloud_providers.openstack.image
- item.status == "active"
@@ -56,12 +56,12 @@
- item['router:external']|default(omit)
- item['admin_state_up']|default(omit)
- item['status'] == 'ACTIVE'
- with_items: "{{ os_network.openstack_networks }}"
+ with_items: "{{ os_network.networks }}"
- name: Set facts
set_fact:
- flavor_id: "{{ (os_flavor.openstack_flavors | sort(attribute='ram'))[0]['id'] }}"
- security_group_name: "{{ os_security_group['secgroup']['name'] }}"
+ flavor_id: "{{ (os_flavor.flavors | sort(attribute='ram'))[0]['id'] }}"
+ security_group_name: "{{ os_security_group['security_group']['name'] }}"
- name: Server created
openstack.cloud.server:
@@ -75,8 +75,15 @@
- net-id: "{{ public_network_id }}"
register: os_server
+- name: Set the IPv4 as a fact
+ set_fact:
+ cloud_instance_ip: "{{ item.addr }}"
+ when:
+ - item['version'] == 4
+ with_items: "{{ os_server.server.addresses.public }}"
+
+
- set_fact:
- cloud_instance_ip: "{{ os_server['openstack']['public_v4'] }}"
ansible_ssh_user: algo
ansible_ssh_port: "{{ ssh_port }}"
cloudinit: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Algo fails to deploy using option 9. OpenStack (DreamCompute optimised)
on MacBook Pro/macOS 4.3.1 and Ubuntu 22.04.2ARM64/(running on parallels)
Error:
To Reproduce
Set the DreamCompute( openstack) credential as indicated with
source credential_files_from_DreamHost.sh
Steps to reproduce the behavior:
./algo
Expected behavior
To succeed, server created
Full log
The text was updated successfully, but these errors were encountered: