2024-09-05 14:08:02,680 - INFO - Domain Default found not creating
2024-09-05 14:08:02,933 - INFO - Project ctest-TestBasicPolicy-52877586 not found, creating it
2024-09-05 14:08:03,412 - INFO - Created Project:ctest-TestBasicPolicy-52877586, ID : fec0a4c5-54a4-4969-9b6e-00072f1be715
2024-09-05 14:08:04,924 - INFO - ================================================================================
2024-09-05 14:08:04,924 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-05 14:08:04,924 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-05 14:08:05,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with
2024-09-05 14:08:05,193 - INFO - Initial checks done. Running the testcase now
2024-09-05 14:08:05,193 - INFO -
2024-09-05 14:08:06,003 - DEBUG - Response for create_network : {'network': {'id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'name': 'ctest-vn-68104418', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-68104418'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 14:08:06,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '136f17cf-db69-42ae-afac-2e949e29f5b9', 'name': '', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'network_id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'ip_version': 4, 'cidr': '6.226.231.192/26', 'allocation_pools': [{'start': '6.226.231.194', 'end': '6.226.231.254'}], 'gateway_ip': '6.226.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.226.231.194', 'tags': [], 'project_id': 'fec0a4c554a449699b6e00072f1be715'}}
2024-09-05 14:08:06,454 - INFO - Created VN ctest-vn-68104418
2024-09-05 14:08:06,504 - DEBUG - VN ctest-vn-68104418 UUID is a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:06,809 - DEBUG - Response for create_network : {'network': {'id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'name': 'ctest-vn-71163008', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-71163008'], 'port_security_enabled': True, 'description': ''}}
2024-09-05 14:08:06,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9ab0fd4-4bcb-4c9b-acc2-d28c6f946c54', 'name': '', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'network_id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'ip_version': 4, 'cidr': '222.235.150.128/26', 'allocation_pools': [{'start': '222.235.150.130', 'end': '222.235.150.190'}], 'gateway_ip': '222.235.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.235.150.130', 'tags': [], 'project_id': 'fec0a4c554a449699b6e00072f1be715'}}
2024-09-05 14:08:07,008 - INFO - Created VN ctest-vn-71163008
2024-09-05 14:08:07,060 - DEBUG - VN ctest-vn-71163008 UUID is c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:07,185 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-05 14:08:07,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'name': 'ctest-vn-68104418', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['136f17cf-db69-42ae-afac-2e949e29f5b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-68104418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']], 'subnet_ipam': [{'subnet_cidr': '6.226.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 14:08:07,748 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'name': 'ctest-vn-71163008', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9ab0fd4-4bcb-4c9b-acc2-d28c6f946c54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-71163008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']], 'subnet_ipam': [{'subnet_cidr': '222.235.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-05 14:08:07,924 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-05 14:08:08,224 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-05 14:08:08,256 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb
2024-09-05 14:08:08,270 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715
2024-09-05 14:08:08,342 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,362 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97
2024-09-05 14:08:08,370 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97
2024-09-05 14:08:08,377 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95866ca9-fa10-4f9e-961f-45282538a6da
2024-09-05 14:08:08,384 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 14:08:08,384 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,394 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97
2024-09-05 14:08:08,408 - INFO - Verified VN network id 9 for VN a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,408 - INFO - Verifications in API Server for VN ctest-vn-68104418 passed
2024-09-05 14:08:08,408 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97
2024-09-05 14:08:08,425 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97
2024-09-05 14:08:08,431 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95866ca9-fa10-4f9e-961f-45282538a6da
2024-09-05 14:08:08,445 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52877586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11977894145823491130', 'uuid-lslong': '9545598955116129497'}, 'enable': 'true', 'created': '2024-09-05T14:08:05', 'last-modified': '2024-09-05T14:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972170'}
2024-09-05 14:08:08,453 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-05 14:08:08,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68104418 passed
2024-09-05 14:08:08,453 - DEBUG - ====Verifying policy data for ctest-vn-68104418 in API_Server ======
2024-09-05 14:08:08,453 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-05 14:08:08,460 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb
2024-09-05 14:08:08,471 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715
2024-09-05 14:08:08,545 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9
2024-09-05 14:08:08,553 - DEBUG - ==>Verifying data for policy with id: 9acec983-4926-4f73-aee5-ce684071269a, fqn: ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']
2024-09-05 14:08:08,554 - INFO - VN ctest-vn-68104418 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 14:08:08,554 - DEBUG - Verifying the vn in opserver
2024-09-05 14:08:08,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418 virtual network link through opserver 10.0.0.33
2024-09-05 14:08:08,554 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-05 14:08:08,850 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-05 14:08:08,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418?flat'}
2024-09-05 14:08:08,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418 is found in opserver
2024-09-05 14:08:08,929 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 14:08:08,935 - DEBUG - VRF ids for VN ctest-vn-68104418: {}
2024-09-05 14:08:08,935 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-05 14:08:08,942 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb
2024-09-05 14:08:08,954 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715
2024-09-05 14:08:09,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,036 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,045 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715
2024-09-05 14:08:09,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715
2024-09-05 14:08:09,060 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e61ec7a-d8e0-474f-aebe-d74bba0860f5
2024-09-05 14:08:09,069 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 14:08:09,069 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,077 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715
2024-09-05 14:08:09,093 - INFO - Verified VN network id 10 for VN c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,093 - INFO - Verifications in API Server for VN ctest-vn-71163008 passed
2024-09-05 14:08:09,093 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,102 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715
2024-09-05 14:08:09,111 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715
2024-09-05 14:08:09,118 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e61ec7a-d8e0-474f-aebe-d74bba0860f5
2024-09-05 14:08:09,131 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52877586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14488737461902658737', 'uuid-lslong': '9803159354175202025'}, 'enable': 'true', 'created': '2024-09-05T14:08:06', 'last-modified': '2024-09-05T14:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415139'}
2024-09-05 14:08:09,139 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-05 14:08:09,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71163008 passed
2024-09-05 14:08:09,139 - DEBUG - ====Verifying policy data for ctest-vn-71163008 in API_Server ======
2024-09-05 14:08:09,139 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-05 14:08:09,147 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb
2024-09-05 14:08:09,160 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715
2024-09-05 14:08:09,232 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9
2024-09-05 14:08:09,242 - DEBUG - ==>Verifying data for policy with id: 9acec983-4926-4f73-aee5-ce684071269a, fqn: ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']
2024-09-05 14:08:09,242 - INFO - VN ctest-vn-71163008 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-05 14:08:09,242 - DEBUG - Verifying the vn in opserver
2024-09-05 14:08:09,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008 virtual network link through opserver 10.0.0.33
2024-09-05 14:08:09,242 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-05 14:08:09,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008?flat'}
2024-09-05 14:08:09,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008 is found in opserver
2024-09-05 14:08:09,267 - DEBUG - Do not have enough data to verify VN in agent
2024-09-05 14:08:09,273 - DEBUG - VRF ids for VN ctest-vn-71163008: {}
2024-09-05 14:08:09,333 - DEBUG - Services list from nova: [