zhhuabj

test result

Jul 16th, 2026
53
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. TEST 1 - vault with encrypt=true: juju config nova-compute encrypt=true
  2.  
  3. 1, reproduce the problem
  4. juju ssh nova-compute/0
  5. sudo systemctl -a |grep vaultlocker-decrypt
  6. UUID=4de9499c-4d78-4d7b-9f6a-38ed920fb6b5
  7. sudo mkdir -p /etc/systemd/system/vaultlocker-decrypt@"$UUID".service.d
  8. sudo tee /etc/systemd/system/vaultlocker-decrypt@"$UUID".service.d/slow.conf >/dev/null <<EOF
  9. [Service]
  10. ExecStartPre=/bin/sleep 91
  11. EOF
  12. sudo systemctl daemon-reload
  13. sudo reboot
  14.  
  15. ubuntu@juju-63b52a-yoga-8:~$ sudo systemctl status nova-compute |grep failed
  16. Jul 17 06:24:53 juju-63b52a-yoga-8 systemd[1]: Dependency failed for OpenStack Compute.
  17. Jul 17 06:24:53 juju-63b52a-yoga-8 systemd[1]: nova-compute.service: Job nova-compute.service/start failed with result 'dependency'.
  18.  
  19. 2, reset the env to make 'juju status' clean
  20. UUID=4de9499c-4d78-4d7b-9f6a-38ed920fb6b5
  21. sudo rm -rf /etc/systemd/system/vaultlocker-decrypt@"$UUID".service.d/slow.conf
  22. sudo systemctl daemon-reload
  23. sudo reboot
  24.  
  25. 3, apply for the fix
  26. cd /home/ubuntu/charms
  27. juju download nova-compute --channel yoga/stable --filepath nova-compute.charm
  28. unzip -q nova-compute.charm -d nova-compute/
  29. nova-compute/ && patch -p1 < ../diff
  30. zip -rq ../nova-compute.charm . && cd ..
  31. juju refresh nova-compute --path ~/charms/nova-compute
  32.  
  33. 4, still use 'sleep 91' but repeat the steps in steps 1 again
  34. ubuntu@juju-63b52a-yoga-8:~$ sudo systemctl status nova-compute |grep failed
  35. <empty>
  36. ubuntu@juju-63b52a-yoga-8:~$ cat /etc/fstab |grep vault
  37. /dev/mapper/crypt-4de9499c-4d78-4d7b-9f6a-38ed920fb6b5 /var/lib/nova/instances xfs defaults,nofail,x-systemd.requires=vaultlocker-decrypt@4de9499c-4d78-4d7b-9f6a-38ed920fb6b5.service,comment=vaultlocker,x-systemd.device-timeout=180s 0 0
  38.  
  39.  
  40.  
  41.  
  42. TEST2 - barbian-vault env + sleep 91 + juju config nova-compute encrypt=false
  43.  
  44. ./generate-bundle.sh --name yoga --series jammy --release yoga --run --barbican
  45. juju config nova-compute encrypt=false
  46. ubuntu@juju-63b52a-yoga-8:~$ sudo grep -r 'encrypted_ephemeral_storage_enabled' /var/lib/juju/agents/unit-nova-compute-0/charm/ |wc -l
  47. 0
  48. #and remove x-systemd.device-timeout=180s from /etc/fstab, then run: sudo reboot
  49. #we reproduce the problem again, because charm code was reset
  50. $ sudo systemctl status nova-compute |grep failed
  51. Jul 17 07:41:08 juju-63b52a-yoga-8 systemd[1]: Dependency failed for OpenStack Compute.
  52. Jul 17 07:41:08 juju-63b52a-yoga-8 systemd[1]: nova-compute.service: Job nova-compute.service/start failed with result 'dependency'.
  53.  
  54. #then repeat above step 2 to reset then env to make 'juju status' clean
  55.  
  56. #then apply for the fix
  57. juju refresh nova-compute --path ~/charms/nova-compute
  58. ubuntu@juju-63b52a-yoga-8:~$ sudo grep -r 'encrypted_ephemeral_storage_enabled' /var/lib/juju/agents/unit-nova-compute-0/charm/ |wc -l
  59. 5
  60.  
  61. #then repeat the test in step 1
  62. ubuntu@juju-63b52a-yoga-8:~$ sudo systemctl status nova-compute |grep active
  63. Active: active (running) since Wed 2026-07-17 07:51:59 UTC; 2min 35s ago
  64. 0
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment