Advertisement
Guest User

Untitled

a guest
Apr 30th, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1.  
  2. cat metadata.yaml
  3. domains:
  4. - hosts:
  5. - group: ipaserver
  6. name: f32.mrack.test
  7. os: fedora-32
  8. role: master
  9. - group: ipaserver
  10. name: f33.mrack.test
  11. os: fedora-33
  12. role: master
  13. name: mrack.test
  14. - hosts:
  15. - group: ipaserver
  16. name: f32.mracksecond
  17. os: fedora-32
  18. role: master
  19. - group: ipaserver
  20. name: f33.mracksecond
  21. os: fedora-33
  22. role: master
  23. name: mracksecond
  24.  
  25.  
  26. [root@kvm-01-guest08 mrack]# mrack up -p podman
  27. Podman: Initializing provider
  28. Podman: Init duration 0:00:00.000015
  29. Provisioning started
  30. Podman: Created requirement(s): [
  31. {
  32. "domain": "mrack.test",
  33. "hostname": "f32.mrack.test",
  34. "image": "quay.io/neoave/snappeas:fedora-32",
  35. "name": "f32.mrack.test"
  36. },
  37. {
  38. "domain": "mrack.test",
  39. "hostname": "f33.mrack.test",
  40. "image": "quay.io/neoave/snappeas:fedora-33",
  41. "name": "f33.mrack.test"
  42. },
  43. {
  44. "domain": "mracksecond",
  45. "hostname": "f32.mracksecond",
  46. "image": "quay.io/neoave/snappeas:fedora-32",
  47. "name": "f32.mracksecond"
  48. },
  49. {
  50. "domain": "mracksecond",
  51. "hostname": "f33.mracksecond",
  52. "image": "quay.io/neoave/snappeas:fedora-33",
  53. "name": "f33.mracksecond"
  54. }
  55. ]
  56. Podman: Preparing provider resources
  57. Podman: Preparing network(s) {'mrack-mrack-test', 'mrack-mracksecond'}
  58. Podman: Creating podman network 'mrack-mracksecond'
  59. Podman: Creating podman network 'mrack-mrack-test'
  60. Podman: Pulling missing images {'quay.io/neoave/snappeas:fedora-33', 'quay.io/neoave/snappeas:fedora-32'}
  61. Podman: All required images present
  62. Podman: Validating hosts definitions
  63. Podman: Validating hosts definitions
  64. Podman: Host definitions valid
  65. Podman: Checking available resources
  66. Podman: Resource availability: OK
  67. Podman: Issuing provisioning of 4 host(s)
  68. Podman: Creating container for host: f32.mrack.test
  69. Podman: Creating container for host: f33.mrack.test
  70. Podman: Creating container for host: f32.mracksecond
  71. Podman: Creating container for host: f33.mracksecond
  72. Podman: Provisioning issued
  73. Podman: Waiting for all hosts to be active
  74. Podman: 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 was provisioned in 1.2s
  75. Podman: 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 was provisioned in 1.2s
  76. Podman: 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b was provisioned in 1.4s
  77. Podman: 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 was provisioned in 1.4s
  78. Podman: All hosts reached provisioning final state (ACTIVE or ERROR)
  79. Podman: Provisioning duration: 0:00:14.396211
  80. Podman: Waiting for the port 22 on host 10.89.0.17 to start accepting connections
  81. Podman: Port 22 on host 10.89.0.17 is now open
  82. ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.17 echo mrack
  83. Warning: Permanently added '10.89.0.17' (ECDSA) to the list of known hosts.
  84. mrack
  85. Podman: Waiting for the port 22 on host 10.89.0.16 to start accepting connections
  86. Podman: Port 22 on host 10.89.0.16 is now open
  87. ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.16 echo mrack
  88. Warning: Permanently added '10.89.0.16' (ECDSA) to the list of known hosts.
  89. mrack
  90. Podman: Waiting for the port 22 on host 10.89.1.6 to start accepting connections
  91. Podman: Port 22 on host 10.89.1.6 is now open
  92. ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.1.6 echo mrack
  93. Warning: Permanently added '10.89.1.6' (ECDSA) to the list of known hosts.
  94. mrack
  95. Podman: Waiting for the port 22 on host 10.89.1.7 to start accepting connections
  96. Podman: Port 22 on host 10.89.1.7 is now open
  97. ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.1.7 echo mrack
  98. Warning: Permanently added '10.89.1.7' (ECDSA) to the list of known hosts.
  99. mrack
  100. Podman: Printing provisioned hosts
  101. Podman: active 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b f32.mrack.test 10.89.0.17 root None
  102. Podman: active 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 f33.mrack.test 10.89.0.16 root None
  103. Podman: active 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 f32.mracksecond 10.89.1.6 root None
  104. Podman: active 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 f33.mracksecond 10.89.1.7 root None
  105. Provisioning done
  106. Output generation started
  107. Created: mrack-inventory.yaml
  108. Created: pytest-multihost.yaml
  109. Output generation done
  110. [root@kvm-01-guest08 mrack]#
  111. [root@kvm-01-guest08 mrack]#
  112. [root@kvm-01-guest08 mrack]#
  113. [root@kvm-01-guest08 mrack]#
  114. [root@kvm-01-guest08 mrack]# podman ps
  115. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  116. 01266e8a3f62 quay.io/neoave/snappeas:fedora-32 About a minute ago Up About a minute ago f32-mrack-test-mrack-mrack-test
  117. 568bb6063bd5 quay.io/neoave/snappeas:fedora-33 About a minute ago Up About a minute ago f33-mrack-test-mrack-mrack-test
  118. 56e187470d6b quay.io/neoave/snappeas:fedora-32 About a minute ago Up About a minute ago f32-mracksecond-mrack-mracksecond
  119. 3ef55a544bc4 quay.io/neoave/snappeas:fedora-33 About a minute ago Up About a minute ago f33-mracksecond-mrack-mracksecond
  120. [root@kvm-01-guest08 mrack]# tail -f mrack.log
  121. 2021-04-30 12:12:31,521 mrack.providers.provider INFO Podman: Printing provisioned hosts
  122. 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b f32.mrack.test 10.89.0.17 root None
  123. 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 f33.mrack.test 10.89.0.16 root None
  124. 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 f32.mracksecond 10.89.1.6 root None
  125. 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 f33.mracksecond 10.89.1.7 root None
  126. 2021-04-30 12:12:31,536 mrack.actions.up INFO Provisioning done
  127. 2021-04-30 12:12:31,537 mrack.actions.output INFO Output generation started
  128. 2021-04-30 12:13:12,279 mrack.outputs.ansible_inventory INFO Created: mrack-inventory.yaml
  129. 2021-04-30 12:13:53,123 mrack.outputs.pytest_multihost INFO Created: pytest-multihost.yaml
  130. 2021-04-30 12:13:53,123 mrack.actions.output INFO Output generation done
  131.  
  132.  
  133.  
  134. ^C
  135. [root@kvm-01-guest08 mrack]# ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.16
  136. Warning: Permanently added '10.89.0.16' (ECDSA) to the list of known hosts.
  137. [root@f33 ~]# ping 10.89.0.17
  138. PING 10.89.0.17 (10.89.0.17) 56(84) bytes of data.
  139. 64 bytes from 10.89.0.17: icmp_seq=1 ttl=64 time=0.419 ms
  140. 64 bytes from 10.89.0.17: icmp_seq=2 ttl=64 time=0.156 ms
  141. 64 bytes from 10.89.0.17: icmp_seq=3 ttl=64 time=0.137 ms
  142. 64 bytes from 10.89.0.17: icmp_seq=4 ttl=64 time=0.108 ms
  143. 64 bytes from 10.89.0.17: icmp_seq=5 ttl=64 time=0.135 ms
  144. 64 bytes from 10.89.0.17: icmp_seq=6 ttl=64 time=0.134 ms
  145. ^C
  146. --- 10.89.0.17 ping statistics ---
  147. 6 packets transmitted, 6 received, 0% packet loss, time 5114ms
  148. rtt min/avg/max/mdev = 0.108/0.181/0.419/0.107 ms
  149. [root@f33 ~]# ping 10.89.1.6
  150. PING 10.89.1.6 (10.89.1.6) 56(84) bytes of data.
  151. 64 bytes from 10.89.1.6: icmp_seq=1 ttl=63 time=0.504 ms
  152. 64 bytes from 10.89.1.6: icmp_seq=2 ttl=63 time=0.251 ms
  153. 64 bytes from 10.89.1.6: icmp_seq=3 ttl=63 time=0.187 ms
  154. ^C
  155. --- 10.89.1.6 ping statistics ---
  156. 3 packets transmitted, 3 received, 0% packet loss, time 2003ms
  157. rtt min/avg/max/mdev = 0.187/0.314/0.504/0.136 ms
  158.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement