summaryrefslogtreecommitdiff
path: root/3 Resources/Openstack
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-01-19 21:14:51 +0100
committerJasper Ras <jras@hostnet.nl>2025-01-19 21:14:51 +0100
commit9642cd7ae24f0ba79ce5647c709b35ae8f06a285 (patch)
treeae25c3b0db7ae4c23186b294c6d000073f085c2d /3 Resources/Openstack
parent969b96c2531fb986f6c7f21fd544391b439defd7 (diff)
vault backup: 2025-01-19 21:14:51
Diffstat (limited to '3 Resources/Openstack')
-rw-r--r--3 Resources/Openstack/Creating ports.md4
-rw-r--r--3 Resources/Openstack/Libvirt pmsuspended.md6
-rw-r--r--3 Resources/Openstack/Nova live migration volume.md18
3 files changed, 28 insertions, 0 deletions
diff --git a/3 Resources/Openstack/Creating ports.md b/3 Resources/Openstack/Creating ports.md
new file mode 100644
index 0000000..90223bf
--- /dev/null
+++ b/3 Resources/Openstack/Creating ports.md
@@ -0,0 +1,4 @@
+#openstack #port
+
+---
+Creating a port with a fixed IP requires admin privileges. It is not sufficient to have an RBAC policy that shares the network with a tenant. \ No newline at end of file
diff --git a/3 Resources/Openstack/Libvirt pmsuspended.md b/3 Resources/Openstack/Libvirt pmsuspended.md
new file mode 100644
index 0000000..4749c76
--- /dev/null
+++ b/3 Resources/Openstack/Libvirt pmsuspended.md
@@ -0,0 +1,6 @@
+#openstack #libvirt
+
+---
+Encountered a guest running some desktop image that sleeps and puts libvirt domain in state pmsuspend.
+
+Openstack does not sync power states in this case so the nova instance is still ACTIVE. \ No newline at end of file
diff --git a/3 Resources/Openstack/Nova live migration volume.md b/3 Resources/Openstack/Nova live migration volume.md
new file mode 100644
index 0000000..8b37f67
--- /dev/null
+++ b/3 Resources/Openstack/Nova live migration volume.md
@@ -0,0 +1,18 @@
+#openstack #nova #live-migration #volume
+
+
+---
+Table cinder.volume_attachment, contains which volume_driver. target_lun `(<n>)` here maps to `dm-<n>`.
+Luns are not unique across pod, each node has a target_lun 2 and thus dm-2 connected.
+
+os-brick is responsible for connecting volumes;
+if connection_info it receives contains target_iqns, target_luns etc it will not do a scan and just returns those.
+`@see os_brick/initiator/connectors/iscsi.py`
+
+`nova/virt/libvirt/driver.py -> def _connect_volume` does attaching of volumes using os-brick. Driver exposes some methods that do this and are called elsewhere: `swap_volume`, `attach_volume`, `pre_live_migration`.
+
+`pre_live_migration` is called by `nova/compute/manager.py`
+
+So in `nova/compute/manager.py` there is a function that does the rollback, and it rollbacks bdm's and deletes volume attachments before it calls `rollback_live_migration_at_destination` which in turn makes an attempt at deleting the actual volume attachment to the node. But at that point all objects have been rollbacked already so it has invalid information.
+
+If the code in new versions of openstack isn't any different i'll just make a bug report and see what they come up with.