2024-09-18 06:48:25,292 - INFO - Domain Default found not creating
2024-09-18 06:48:25,472 - INFO - Project ctest-TestBasicPolicy-41093118 not found, creating it
2024-09-18 06:48:25,982 - INFO - Created Project:ctest-TestBasicPolicy-41093118, ID : 244a174e-cb18-4b95-b5e7-cfd837509d7c
2024-09-18 06:48:27,619 - INFO - ================================================================================
2024-09-18 06:48:27,620 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 06:48:27,620 - 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-18 06:48:27,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.27': '0'}} with
2024-09-18 06:48:27,878 - INFO - Initial checks done. Running the testcase now
2024-09-18 06:48:27,878 - INFO -
2024-09-18 06:48:28,470 - DEBUG - Response for create_network : {'network': {'id': '7765f74d-36c3-4456-8c77-149fa3ca6a96', 'name': 'ctest-vn-36340291', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'project_id': '244a174ecb184b95b5e7cfd837509d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-vn-36340291'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 06:48:28,698 - DEBUG - Response for create_subnet : {'subnet': {'id': '20c1088f-b178-4f77-abfa-9e2a06773bdd', 'name': '', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'network_id': '7765f74d-36c3-4456-8c77-149fa3ca6a96', 'ip_version': 4, 'cidr': '47.143.60.192/26', 'allocation_pools': [{'start': '47.143.60.194', 'end': '47.143.60.254'}], 'gateway_ip': '47.143.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.143.60.194', 'tags': [], 'project_id': '244a174ecb184b95b5e7cfd837509d7c'}}
2024-09-18 06:48:28,719 - INFO - Created VN ctest-vn-36340291
2024-09-18 06:48:28,777 - DEBUG - VN ctest-vn-36340291 UUID is 7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:29,102 - DEBUG - Response for create_network : {'network': {'id': '81ab387a-5194-4963-af73-04a3b030a53d', 'name': 'ctest-vn-62232604', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'project_id': '244a174ecb184b95b5e7cfd837509d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-vn-62232604'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 06:48:29,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '999ed65c-2227-4e3c-b62a-5724452b4fe7', 'name': '', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'network_id': '81ab387a-5194-4963-af73-04a3b030a53d', 'ip_version': 4, 'cidr': '25.58.199.0/26', 'allocation_pools': [{'start': '25.58.199.2', 'end': '25.58.199.62'}], 'gateway_ip': '25.58.199.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.58.199.2', 'tags': [], 'project_id': '244a174ecb184b95b5e7cfd837509d7c'}}
2024-09-18 06:48:29,325 - INFO - Created VN ctest-vn-62232604
2024-09-18 06:48:29,385 - DEBUG - VN ctest-vn-62232604 UUID is 81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:29,511 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291, 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-41093118:ctest-vn-62232604, 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-18 06:48:29,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7765f74d-36c3-4456-8c77-149fa3ca6a96', 'name': 'ctest-vn-36340291', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'project_id': '244a174ecb184b95b5e7cfd837509d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20c1088f-b178-4f77-abfa-9e2a06773bdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-vn-36340291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-policy-allow-all-97905664']], 'subnet_ipam': [{'subnet_cidr': '47.143.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 06:48:30,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81ab387a-5194-4963-af73-04a3b030a53d', 'name': 'ctest-vn-62232604', 'tenant_id': '244a174ecb184b95b5e7cfd837509d7c', 'project_id': '244a174ecb184b95b5e7cfd837509d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['999ed65c-2227-4e3c-b62a-5724452b4fe7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-vn-62232604'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-policy-allow-all-97905664']], 'subnet_ipam': [{'subnet_cidr': '25.58.199.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 06:48:30,265 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-18 06:48:30,561 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-18 06:48:30,593 - DEBUG - Requesting: http://10.0.0.54:8082/domain/978df1e7-1ede-4101-8f66-c6056aa8f6a1
2024-09-18 06:48:30,611 - DEBUG - Requesting: http://10.0.0.54:8082/project/244a174e-cb18-4b95-b5e7-cfd837509d7c
2024-09-18 06:48:30,702 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,718 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,732 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f3bcb9c1-4f18-4e24-b529-132cecb0ad99
2024-09-18 06:48:30,741 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f3bcb9c1-4f18-4e24-b529-132cecb0ad99
2024-09-18 06:48:30,752 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/65c72a66-0a4f-4a21-b4e1-649066ed3fa8
2024-09-18 06:48:30,759 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 06:48:30,760 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,776 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f3bcb9c1-4f18-4e24-b529-132cecb0ad99
2024-09-18 06:48:30,797 - INFO - Verified VN network id 8 for VN 7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,797 - INFO - Verifications in API Server for VN ctest-vn-36340291 passed
2024-09-18 06:48:30,797 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,812 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f3bcb9c1-4f18-4e24-b529-132cecb0ad99
2024-09-18 06:48:30,821 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f3bcb9c1-4f18-4e24-b529-132cecb0ad99
2024-09-18 06:48:30,830 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/65c72a66-0a4f-4a21-b4e1-649066ed3fa8
2024-09-18 06:48:30,842 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41093118', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8603554574164509782', 'uuid-lslong': '10121581363418786454'}, 'enable': 'true', 'created': '2024-09-18T06:48:28', 'last-modified': '2024-09-18T06:48:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040929'}
2024-09-18 06:48:30,849 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 06:48:30,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36340291 passed
2024-09-18 06:48:30,850 - DEBUG - ====Verifying policy data for ctest-vn-36340291 in API_Server ======
2024-09-18 06:48:30,850 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-18 06:48:30,856 - DEBUG - Requesting: http://10.0.0.54:8082/domain/978df1e7-1ede-4101-8f66-c6056aa8f6a1
2024-09-18 06:48:30,872 - DEBUG - Requesting: http://10.0.0.54:8082/project/244a174e-cb18-4b95-b5e7-cfd837509d7c
2024-09-18 06:48:30,968 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7765f74d-36c3-4456-8c77-149fa3ca6a96
2024-09-18 06:48:30,982 - DEBUG - ==>Verifying data for policy with id: 2836b0d0-2045-4f0e-adef-db2601333732, fqn: ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-policy-allow-all-97905664']
2024-09-18 06:48:30,982 - INFO - VN ctest-vn-36340291 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 06:48:30,983 - DEBUG - Verifying the vn in opserver
2024-09-18 06:48:30,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291 virtual network link through opserver 10.0.0.54
2024-09-18 06:48:30,983 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-18 06:48:31,277 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-18 06:48:31,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291?flat'}
2024-09-18 06:48:31,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-36340291 is found in opserver
2024-09-18 06:48:31,351 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 06:48:31,356 - DEBUG - VRF ids for VN ctest-vn-36340291: {}
2024-09-18 06:48:31,356 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-18 06:48:31,362 - DEBUG - Requesting: http://10.0.0.54:8082/domain/978df1e7-1ede-4101-8f66-c6056aa8f6a1
2024-09-18 06:48:31,377 - DEBUG - Requesting: http://10.0.0.54:8082/project/244a174e-cb18-4b95-b5e7-cfd837509d7c
2024-09-18 06:48:31,458 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,478 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,492 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f80042c4-2ebd-49e6-850a-88268208ffd3
2024-09-18 06:48:31,502 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f80042c4-2ebd-49e6-850a-88268208ffd3
2024-09-18 06:48:31,511 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/b0b76fae-27d0-4fdb-8ae7-410da3934b10
2024-09-18 06:48:31,520 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 06:48:31,520 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,533 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f80042c4-2ebd-49e6-850a-88268208ffd3
2024-09-18 06:48:31,556 - INFO - Verified VN network id 9 for VN 81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,557 - INFO - Verifications in API Server for VN ctest-vn-62232604 passed
2024-09-18 06:48:31,557 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,574 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f80042c4-2ebd-49e6-850a-88268208ffd3
2024-09-18 06:48:31,583 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f80042c4-2ebd-49e6-850a-88268208ffd3
2024-09-18 06:48:31,592 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/b0b76fae-27d0-4fdb-8ae7-410da3934b10
2024-09-18 06:48:31,605 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-62232604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41093118', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9343623949916064099', 'uuid-lslong': '12642453680041272637'}, 'enable': 'true', 'created': '2024-09-18T06:48:29', 'last-modified': '2024-09-18T06:48:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548134'}
2024-09-18 06:48:31,612 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 06:48:31,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62232604 passed
2024-09-18 06:48:31,613 - DEBUG - ====Verifying policy data for ctest-vn-62232604 in API_Server ======
2024-09-18 06:48:31,613 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-18 06:48:31,619 - DEBUG - Requesting: http://10.0.0.54:8082/domain/978df1e7-1ede-4101-8f66-c6056aa8f6a1
2024-09-18 06:48:31,631 - DEBUG - Requesting: http://10.0.0.54:8082/project/244a174e-cb18-4b95-b5e7-cfd837509d7c
2024-09-18 06:48:31,712 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/81ab387a-5194-4963-af73-04a3b030a53d
2024-09-18 06:48:31,727 - DEBUG - ==>Verifying data for policy with id: 2836b0d0-2045-4f0e-adef-db2601333732, fqn: ['default-domain', 'ctest-TestBasicPolicy-41093118', 'ctest-policy-allow-all-97905664']
2024-09-18 06:48:31,727 - INFO - VN ctest-vn-62232604 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 06:48:31,727 - DEBUG - Verifying the vn in opserver
2024-09-18 06:48:31,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-62232604 virtual network link through opserver 10.0.0.54
2024-09-18 06:48:31,727 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-18 06:48:31,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-62232604', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-62232604?flat'}
2024-09-18 06:48:31,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41093118:ctest-vn-62232604 is found in opserver
2024-09-18 06:48:31,750 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 06:48:31,755 - DEBUG - VRF ids for VN ctest-vn-62232604: {}
2024-09-18 06:48:31,813 - DEBUG - Services list from nova: [