Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat metadata.yaml
- domains:
- - hosts:
- - group: ipaserver
- name: f32.mrack.test
- os: fedora-32
- role: master
- - group: ipaserver
- name: f33.mrack.test
- os: fedora-33
- role: master
- name: mrack.test
- - hosts:
- - group: ipaserver
- name: f32.mracksecond
- os: fedora-32
- role: master
- - group: ipaserver
- name: f33.mracksecond
- os: fedora-33
- role: master
- name: mracksecond
- [root@kvm-01-guest08 mrack]# mrack up -p podman
- Podman: Initializing provider
- Podman: Init duration 0:00:00.000015
- Provisioning started
- Podman: Created requirement(s): [
- {
- "domain": "mrack.test",
- "hostname": "f32.mrack.test",
- "image": "quay.io/neoave/snappeas:fedora-32",
- "name": "f32.mrack.test"
- },
- {
- "domain": "mrack.test",
- "hostname": "f33.mrack.test",
- "image": "quay.io/neoave/snappeas:fedora-33",
- "name": "f33.mrack.test"
- },
- {
- "domain": "mracksecond",
- "hostname": "f32.mracksecond",
- "image": "quay.io/neoave/snappeas:fedora-32",
- "name": "f32.mracksecond"
- },
- {
- "domain": "mracksecond",
- "hostname": "f33.mracksecond",
- "image": "quay.io/neoave/snappeas:fedora-33",
- "name": "f33.mracksecond"
- }
- ]
- Podman: Preparing provider resources
- Podman: Preparing network(s) {'mrack-mrack-test', 'mrack-mracksecond'}
- Podman: Creating podman network 'mrack-mracksecond'
- Podman: Creating podman network 'mrack-mrack-test'
- Podman: Pulling missing images {'quay.io/neoave/snappeas:fedora-33', 'quay.io/neoave/snappeas:fedora-32'}
- Podman: All required images present
- Podman: Validating hosts definitions
- Podman: Validating hosts definitions
- Podman: Host definitions valid
- Podman: Checking available resources
- Podman: Resource availability: OK
- Podman: Issuing provisioning of 4 host(s)
- Podman: Creating container for host: f32.mrack.test
- Podman: Creating container for host: f33.mrack.test
- Podman: Creating container for host: f32.mracksecond
- Podman: Creating container for host: f33.mracksecond
- Podman: Provisioning issued
- Podman: Waiting for all hosts to be active
- Podman: 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 was provisioned in 1.2s
- Podman: 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 was provisioned in 1.2s
- Podman: 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b was provisioned in 1.4s
- Podman: 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 was provisioned in 1.4s
- Podman: All hosts reached provisioning final state (ACTIVE or ERROR)
- Podman: Provisioning duration: 0:00:14.396211
- Podman: Waiting for the port 22 on host 10.89.0.17 to start accepting connections
- Podman: Port 22 on host 10.89.0.17 is now open
- ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.17 echo mrack
- Warning: Permanently added '10.89.0.17' (ECDSA) to the list of known hosts.
- mrack
- Podman: Waiting for the port 22 on host 10.89.0.16 to start accepting connections
- Podman: Port 22 on host 10.89.0.16 is now open
- ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.16 echo mrack
- Warning: Permanently added '10.89.0.16' (ECDSA) to the list of known hosts.
- mrack
- Podman: Waiting for the port 22 on host 10.89.1.6 to start accepting connections
- Podman: Port 22 on host 10.89.1.6 is now open
- ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.1.6 echo mrack
- Warning: Permanently added '10.89.1.6' (ECDSA) to the list of known hosts.
- mrack
- Podman: Waiting for the port 22 on host 10.89.1.7 to start accepting connections
- Podman: Port 22 on host 10.89.1.7 is now open
- ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.1.7 echo mrack
- Warning: Permanently added '10.89.1.7' (ECDSA) to the list of known hosts.
- mrack
- Podman: Printing provisioned hosts
- Podman: active 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b f32.mrack.test 10.89.0.17 root None
- Podman: active 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 f33.mrack.test 10.89.0.16 root None
- Podman: active 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 f32.mracksecond 10.89.1.6 root None
- Podman: active 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 f33.mracksecond 10.89.1.7 root None
- Provisioning done
- Output generation started
- Created: mrack-inventory.yaml
- Created: pytest-multihost.yaml
- Output generation done
- [root@kvm-01-guest08 mrack]#
- [root@kvm-01-guest08 mrack]#
- [root@kvm-01-guest08 mrack]#
- [root@kvm-01-guest08 mrack]#
- [root@kvm-01-guest08 mrack]# podman ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 01266e8a3f62 quay.io/neoave/snappeas:fedora-32 About a minute ago Up About a minute ago f32-mrack-test-mrack-mrack-test
- 568bb6063bd5 quay.io/neoave/snappeas:fedora-33 About a minute ago Up About a minute ago f33-mrack-test-mrack-mrack-test
- 56e187470d6b quay.io/neoave/snappeas:fedora-32 About a minute ago Up About a minute ago f32-mracksecond-mrack-mracksecond
- 3ef55a544bc4 quay.io/neoave/snappeas:fedora-33 About a minute ago Up About a minute ago f33-mracksecond-mrack-mracksecond
- [root@kvm-01-guest08 mrack]# tail -f mrack.log
- 2021-04-30 12:12:31,521 mrack.providers.provider INFO Podman: Printing provisioned hosts
- 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 01266e8a3f62bb82bb3696d4af905e9c6a26cef8abc31a5272133cfce0c0045b f32.mrack.test 10.89.0.17 root None
- 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 568bb6063bd5acd85cff60d3cba84950c81c9d4ed7aaab080071d0102ff84810 f33.mrack.test 10.89.0.16 root None
- 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 56e187470d6b457815b57b03138a92414e57d9a05f21cc7377f774d3876d3b78 f32.mracksecond 10.89.1.6 root None
- 2021-04-30 12:12:31,522 mrack.providers.provider INFO Podman: active 3ef55a544bc4ced2cee0ce82ab188254caccbada170e8f38d742c36f0c3b2327 f33.mracksecond 10.89.1.7 root None
- 2021-04-30 12:12:31,536 mrack.actions.up INFO Provisioning done
- 2021-04-30 12:12:31,537 mrack.actions.output INFO Output generation started
- 2021-04-30 12:13:12,279 mrack.outputs.ansible_inventory INFO Created: mrack-inventory.yaml
- 2021-04-30 12:13:53,123 mrack.outputs.pytest_multihost INFO Created: pytest-multihost.yaml
- 2021-04-30 12:13:53,123 mrack.actions.output INFO Output generation done
- ^C
- [root@kvm-01-guest08 mrack]# ssh -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -l root -i config/id_rsa 10.89.0.16
- Warning: Permanently added '10.89.0.16' (ECDSA) to the list of known hosts.
- [root@f33 ~]# ping 10.89.0.17
- PING 10.89.0.17 (10.89.0.17) 56(84) bytes of data.
- 64 bytes from 10.89.0.17: icmp_seq=1 ttl=64 time=0.419 ms
- 64 bytes from 10.89.0.17: icmp_seq=2 ttl=64 time=0.156 ms
- 64 bytes from 10.89.0.17: icmp_seq=3 ttl=64 time=0.137 ms
- 64 bytes from 10.89.0.17: icmp_seq=4 ttl=64 time=0.108 ms
- 64 bytes from 10.89.0.17: icmp_seq=5 ttl=64 time=0.135 ms
- 64 bytes from 10.89.0.17: icmp_seq=6 ttl=64 time=0.134 ms
- ^C
- --- 10.89.0.17 ping statistics ---
- 6 packets transmitted, 6 received, 0% packet loss, time 5114ms
- rtt min/avg/max/mdev = 0.108/0.181/0.419/0.107 ms
- [root@f33 ~]# ping 10.89.1.6
- PING 10.89.1.6 (10.89.1.6) 56(84) bytes of data.
- 64 bytes from 10.89.1.6: icmp_seq=1 ttl=63 time=0.504 ms
- 64 bytes from 10.89.1.6: icmp_seq=2 ttl=63 time=0.251 ms
- 64 bytes from 10.89.1.6: icmp_seq=3 ttl=63 time=0.187 ms
- ^C
- --- 10.89.1.6 ping statistics ---
- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms
- rtt min/avg/max/mdev = 0.187/0.314/0.504/0.136 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement