2024-09-06 16:19:48,584 - INFO - Domain Default found not creating
2024-09-06 16:19:48,742 - INFO - Project ctest-TestBasicPolicy-94077505 not found, creating it
2024-09-06 16:19:49,219 - INFO - Created Project:ctest-TestBasicPolicy-94077505, ID : 3e2244bd-130e-49e7-b45d-dc80daf3edc3
2024-09-06 16:19:50,704 - INFO - ================================================================================
2024-09-06 16:19:50,704 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-06 16:19:50,705 - 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-06 16:19:50,961 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.23': '0'}} with
2024-09-06 16:19:50,961 - INFO - Initial checks done. Running the testcase now
2024-09-06 16:19:50,961 - INFO -
2024-09-06 16:19:51,513 - DEBUG - Response for create_network : {'network': {'id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'name': 'ctest-vn-93844877', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-93844877'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 16:19:51,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f496d5b-3213-4908-8916-bf6f8a81cd99', 'name': '', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'network_id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'ip_version': 4, 'cidr': '77.190.189.0/26', 'allocation_pools': [{'start': '77.190.189.2', 'end': '77.190.189.62'}], 'gateway_ip': '77.190.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.190.189.2', 'tags': [], 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3'}}
2024-09-06 16:19:51,708 - INFO - Created VN ctest-vn-93844877
2024-09-06 16:19:51,758 - DEBUG - VN ctest-vn-93844877 UUID is 39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:52,053 - DEBUG - Response for create_network : {'network': {'id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'name': 'ctest-vn-39982818', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-39982818'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 16:19:52,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '34751a41-b729-498c-8592-7a3acea7b5b7', 'name': '', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'network_id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'ip_version': 4, 'cidr': '90.61.102.128/26', 'allocation_pools': [{'start': '90.61.102.130', 'end': '90.61.102.190'}], 'gateway_ip': '90.61.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.61.102.130', 'tags': [], 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3'}}
2024-09-06 16:19:52,250 - INFO - Created VN ctest-vn-39982818
2024-09-06 16:19:52,302 - DEBUG - VN ctest-vn-39982818 UUID is 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:52,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877, 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-94077505:ctest-vn-39982818, 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-06 16:19:52,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'name': 'ctest-vn-93844877', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f496d5b-3213-4908-8916-bf6f8a81cd99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-93844877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']], 'subnet_ipam': [{'subnet_cidr': '77.190.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 16:19:52,975 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'name': 'ctest-vn-39982818', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34751a41-b729-498c-8592-7a3acea7b5b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-39982818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']], 'subnet_ipam': [{'subnet_cidr': '90.61.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 16:19:53,146 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2024-09-06 16:19:53,453 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2024-09-06 16:19:53,490 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19
2024-09-06 16:19:53,504 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3
2024-09-06 16:19:53,576 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,586 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,595 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3
2024-09-06 16:19:53,605 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3
2024-09-06 16:19:53,612 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/982c2e24-67e3-418b-9ab5-c4311b6303b6
2024-09-06 16:19:53,620 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 16:19:53,620 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,631 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3
2024-09-06 16:19:53,644 - INFO - Verified VN network id 8 for VN 39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,644 - INFO - Verifications in API Server for VN ctest-vn-93844877 passed
2024-09-06 16:19:53,644 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,653 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3
2024-09-06 16:19:53,660 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3
2024-09-06 16:19:53,668 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/982c2e24-67e3-418b-9ab5-c4311b6303b6
2024-09-06 16:19:53,680 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94077505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4159540175805827115', 'uuid-lslong': '12519564767935063619'}, 'enable': 'true', 'created': '2024-09-06T16:19:51', 'last-modified': '2024-09-06T16:19:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979704'}
2024-09-06 16:19:53,687 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 16:19:53,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93844877 passed
2024-09-06 16:19:53,687 - DEBUG - ====Verifying policy data for ctest-vn-93844877 in API_Server ======
2024-09-06 16:19:53,687 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2024-09-06 16:19:53,693 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19
2024-09-06 16:19:53,707 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3
2024-09-06 16:19:53,778 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643
2024-09-06 16:19:53,786 - DEBUG - ==>Verifying data for policy with id: 6b21a157-efb7-4b94-975a-8ff3c12a16b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']
2024-09-06 16:19:53,786 - INFO - VN ctest-vn-93844877 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 16:19:53,787 - DEBUG - Verifying the vn in opserver
2024-09-06 16:19:53,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877 virtual network link through opserver 10.0.0.64
2024-09-06 16:19:53,787 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2024-09-06 16:19:54,101 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2024-09-06 16:19:54,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877?flat'}
2024-09-06 16:19:54,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877 is found in opserver
2024-09-06 16:19:54,176 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 16:19:54,182 - DEBUG - VRF ids for VN ctest-vn-93844877: {}
2024-09-06 16:19:54,182 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2024-09-06 16:19:54,188 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19
2024-09-06 16:19:54,200 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3
2024-09-06 16:19:54,271 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,282 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,291 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48
2024-09-06 16:19:54,299 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48
2024-09-06 16:19:54,306 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/a1957218-6ff5-4c62-a5e9-caa0671c6a63
2024-09-06 16:19:54,312 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 16:19:54,312 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,320 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48
2024-09-06 16:19:54,332 - INFO - Verified VN network id 9 for VN 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,333 - INFO - Verifications in API Server for VN ctest-vn-39982818 passed
2024-09-06 16:19:54,333 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,341 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48
2024-09-06 16:19:54,348 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48
2024-09-06 16:19:54,355 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/a1957218-6ff5-4c62-a5e9-caa0671c6a63
2024-09-06 16:19:54,367 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94077505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9017887295183079999', 'uuid-lslong': '12087767713795825584'}, 'enable': 'true', 'created': '2024-09-06T16:19:52', 'last-modified': '2024-09-06T16:19:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.422525'}
2024-09-06 16:19:54,374 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 16:19:54,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39982818 passed
2024-09-06 16:19:54,374 - DEBUG - ====Verifying policy data for ctest-vn-39982818 in API_Server ======
2024-09-06 16:19:54,374 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2024-09-06 16:19:54,380 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19
2024-09-06 16:19:54,392 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3
2024-09-06 16:19:54,463 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0
2024-09-06 16:19:54,471 - DEBUG - ==>Verifying data for policy with id: 6b21a157-efb7-4b94-975a-8ff3c12a16b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']
2024-09-06 16:19:54,471 - INFO - VN ctest-vn-39982818 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 16:19:54,472 - DEBUG - Verifying the vn in opserver
2024-09-06 16:19:54,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818 virtual network link through opserver 10.0.0.64
2024-09-06 16:19:54,472 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2024-09-06 16:19:54,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818?flat'}
2024-09-06 16:19:54,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818 is found in opserver
2024-09-06 16:19:54,494 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 16:19:54,499 - DEBUG - VRF ids for VN ctest-vn-39982818: {}
2024-09-06 16:19:54,556 - DEBUG - Services list from nova: [