Hi Harsh,
thank you for your patience.
Am Di., 17. März 2020 um 16:13 Uhr schrieb Harsh Jain <harshjain075(a)gmail.com>:
Hey Till,
When I try to run ansible-playbook tests_default.yml or any other test in the tests
folder or anything that calls the system role ,
when it reaches
TASK [linux-system-roles.network : Configure networking connection profiles]
a dialog box pops up asking for authentication saying
System policy prevents the creation of a checkpoint or its rollback
this works like normal if I provide the password fast enough , otherwise a timeout
occurs. Is there any way to overcom this so I won't have to provide the password again
.I wasn't able to find anything relevant.
2.When I try to run the examples like
ansible-playbook -i inventory bond-with-vlan.yml
I get this
fatal: [v-rhel7]: UNREACHABLE! => {"changed": false, "msg":
"Failed to connect to the host via ssh: ssh: Could not resolve hostname v-rhel7: Name
or service not known", "unreachable": true}
fatal: [v-rhel6]: UNREACHABLE! => {"changed": false, "msg":
"Failed to connect to the host via ssh: ssh: Could not resolve hostname v-rhel6: Name
or service not known", "unreachable": true}
am I missing something really simple here ?
yes, you need to create/provide virtual machines that can be reached
as v-rhel7 or v-rhel6.
3.
I want to know if multiple virtual interfaces would be required to make and run new tests
and what would be the best way to make them .(ifconfig,nmcli or something else?)
You should use virtual machines (or container images) that you use to
run the tests against.
This is roughly what the test-harness does (linked from the wiki):
yum install standard-test-roles
wget
https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.1...
TEST_SUBJECTS=CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2
ansible-playbook -i
/usr/share/ansible/inventory/standard-inventory-qcow2
tests/tests_ethernet.yml
(etc)
Kind regards
Till
I am running these on fedora 31.
Appreciate any help
Thanks,
Harsh
On Mon, Mar 16, 2020 at 4:56 PM Till Maas <till(a)redhat.com> wrote:
>
> Hi Harsh,
>
> please provide more details about how you run the tests, what system
> are you using, what is the command line and what is the exact output
> that you are seeing.
>
> Thank you
> Till
>
> Am Mo., 16. März 2020 um 08:59 Uhr schrieb Harsh Jain
<harshjain075(a)gmail.com>:
> >
> > Hey ,
> > 1.I'm having some issue while trying to run the integration tests for the
network role , it happens when the checkpoint is created , I receive a dialog box which
says System policy prevents the creation of a checkpoint or its rollback and so nm is
unable to create a checkpoint .
> >
> > 2.When I'm running the example tests, the hosts are unreachable
> >
> > 3.I'm having a bit of trouble in setting up virtual interfaces to make some
tests, what would be the best way to do it ?
> > Any help would be greatly appreciated.
> > Thanks,
> > Harsh
> > _______________________________________________
> > systemroles mailing list -- systemroles(a)lists.fedorahosted.org
> > To unsubscribe send an email to systemroles-leave(a)lists.fedorahosted.org
> > Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives:
https://lists.fedorahosted.org/archives/list/systemroles@lists.fedorahost...
>
>
>
> --
> Till Maas
> He/His/Him
> Associate Manager, Software Engineering
> NetworkManager, Nmstate, Ansible RHEL Networking System Role
>
> Red Hat GmbH,
http://www.de.redhat.com/, Registered seat: Grasbrunn,
> Commercial register: Amtsgericht Muenchen, HRB 153243,
> Managing Directors: Charles Cachera, Laurie Krebs, Michael O'Neill,
> Thomas Savage
>
--
Till Maas
He/His/Him
Associate Manager, Software Engineering
NetworkManager, Nmstate, Ansible RHEL Networking System Role
Red Hat GmbH,
http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Laurie Krebs, Michael O'Neill,
Thomas Savage