2025-02-20 02:22:46,614 - INFO - Domain Default found not creating
2025-02-20 02:22:46,774 - INFO - Project ctest-TestBasicPolicy-07585795 not found, creating it
2025-02-20 02:22:47,212 - INFO - Created Project:ctest-TestBasicPolicy-07585795, ID : 6e654ec5-ff32-4a8a-92c4-e44797d36365
2025-02-20 02:22:48,617 - INFO - ================================================================================
2025-02-20 02:22:48,618 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-20 02:22:48,618 - 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
2025-02-20 02:22:48,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.14': '0'}} with
2025-02-20 02:22:48,875 - INFO - Initial checks done. Running the testcase now
2025-02-20 02:22:48,875 - INFO -
2025-02-20 02:22:49,413 - DEBUG - Response for create_network : {'network': {'id': '90491c6e-b23d-447f-99eb-7e9acc0b7fb6', 'name': 'ctest-vn-80018339', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'project_id': '6e654ec5ff324a8a92c4e44797d36365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-vn-80018339'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:22:49,621 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f93ab7b8-84d4-4d3e-b04f-a854891739bf', 'name': '', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'network_id': '90491c6e-b23d-447f-99eb-7e9acc0b7fb6', 'ip_version': 4, 'cidr': '2.42.144.64/26', 'allocation_pools': [{'start': '2.42.144.66', 'end': '2.42.144.126'}], 'gateway_ip': '2.42.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.42.144.66', 'tags': [], 'project_id': '6e654ec5ff324a8a92c4e44797d36365'}}
2025-02-20 02:22:49,638 - INFO - Created VN ctest-vn-80018339
2025-02-20 02:22:49,690 - DEBUG - VN ctest-vn-80018339 UUID is 90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:49,997 - DEBUG - Response for create_network : {'network': {'id': 'fb6a42a1-a926-4d4b-a519-dc894a2376ad', 'name': 'ctest-vn-62375366', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'project_id': '6e654ec5ff324a8a92c4e44797d36365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-vn-62375366'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:22:50,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '828ef2d0-94c1-43db-a124-ce7850076d70', 'name': '', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'network_id': 'fb6a42a1-a926-4d4b-a519-dc894a2376ad', 'ip_version': 4, 'cidr': '68.8.0.64/26', 'allocation_pools': [{'start': '68.8.0.66', 'end': '68.8.0.126'}], 'gateway_ip': '68.8.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.8.0.66', 'tags': [], 'project_id': '6e654ec5ff324a8a92c4e44797d36365'}}
2025-02-20 02:22:50,237 - INFO - Created VN ctest-vn-62375366
2025-02-20 02:22:50,286 - DEBUG - VN ctest-vn-62375366 UUID is fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:50,442 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339, 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-07585795:ctest-vn-62375366, 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]
2025-02-20 02:22:50,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90491c6e-b23d-447f-99eb-7e9acc0b7fb6', 'name': 'ctest-vn-80018339', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'project_id': '6e654ec5ff324a8a92c4e44797d36365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f93ab7b8-84d4-4d3e-b04f-a854891739bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-vn-80018339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-policy-allow-all-17691126']], 'subnet_ipam': [{'subnet_cidr': '2.42.144.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:22:50,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb6a42a1-a926-4d4b-a519-dc894a2376ad', 'name': 'ctest-vn-62375366', 'tenant_id': '6e654ec5ff324a8a92c4e44797d36365', 'project_id': '6e654ec5ff324a8a92c4e44797d36365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['828ef2d0-94c1-43db-a124-ce7850076d70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-vn-62375366'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-policy-allow-all-17691126']], 'subnet_ipam': [{'subnet_cidr': '68.8.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:22:51,106 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-02-20 02:22:51,399 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-02-20 02:22:51,429 - DEBUG - Requesting: http://10.0.0.37:8082/domain/6c622e75-91ef-47a7-91eb-55d2b2a14425
2025-02-20 02:22:51,444 - DEBUG - Requesting: http://10.0.0.37:8082/project/6e654ec5-ff32-4a8a-92c4-e44797d36365
2025-02-20 02:22:51,516 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,524 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,532 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66524915-3af7-4bc6-aeb4-f33ec251becc
2025-02-20 02:22:51,538 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66524915-3af7-4bc6-aeb4-f33ec251becc
2025-02-20 02:22:51,543 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3ef03d2c-cb8f-4889-8d91-52d0c2ba617c
2025-02-20 02:22:51,548 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:22:51,549 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,556 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66524915-3af7-4bc6-aeb4-f33ec251becc
2025-02-20 02:22:51,566 - INFO - Verified VN network id 9 for VN 90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,566 - INFO - Verifications in API Server for VN ctest-vn-80018339 passed
2025-02-20 02:22:51,566 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,573 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66524915-3af7-4bc6-aeb4-f33ec251becc
2025-02-20 02:22:51,579 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/66524915-3af7-4bc6-aeb4-f33ec251becc
2025-02-20 02:22:51,584 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3ef03d2c-cb8f-4889-8d91-52d0c2ba617c
2025-02-20 02:22:51,596 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07585795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10396872476523840639', 'uuid-lslong': '11091097710643347382'}, 'enable': 'true', 'created': '2025-02-20T02:22:49', 'last-modified': '2025-02-20T02:22:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895702'}
2025-02-20 02:22:51,602 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:22:51,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80018339 passed
2025-02-20 02:22:51,602 - DEBUG - ====Verifying policy data for ctest-vn-80018339 in API_Server ======
2025-02-20 02:22:51,602 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-02-20 02:22:51,608 - DEBUG - Requesting: http://10.0.0.37:8082/domain/6c622e75-91ef-47a7-91eb-55d2b2a14425
2025-02-20 02:22:51,619 - DEBUG - Requesting: http://10.0.0.37:8082/project/6e654ec5-ff32-4a8a-92c4-e44797d36365
2025-02-20 02:22:51,683 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/90491c6e-b23d-447f-99eb-7e9acc0b7fb6
2025-02-20 02:22:51,690 - DEBUG - ==>Verifying data for policy with id: 93718d36-3e0a-426f-8bbf-9621e8266857, fqn: ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-policy-allow-all-17691126']
2025-02-20 02:22:51,690 - INFO - VN ctest-vn-80018339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:22:51,690 - DEBUG - Verifying the vn in opserver
2025-02-20 02:22:51,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339 virtual network link through opserver 10.0.0.37
2025-02-20 02:22:51,690 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-02-20 02:22:51,981 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-02-20 02:22:52,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339?flat'}
2025-02-20 02:22:52,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-80018339 is found in opserver
2025-02-20 02:22:52,048 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:22:52,053 - DEBUG - VRF ids for VN ctest-vn-80018339: {}
2025-02-20 02:22:52,053 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-02-20 02:22:52,058 - DEBUG - Requesting: http://10.0.0.37:8082/domain/6c622e75-91ef-47a7-91eb-55d2b2a14425
2025-02-20 02:22:52,069 - DEBUG - Requesting: http://10.0.0.37:8082/project/6e654ec5-ff32-4a8a-92c4-e44797d36365
2025-02-20 02:22:52,133 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,143 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,150 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/535cb016-e06a-4bf0-b527-7bb6a0a5054a
2025-02-20 02:22:52,157 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/535cb016-e06a-4bf0-b527-7bb6a0a5054a
2025-02-20 02:22:52,162 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/5ca6faca-7dd0-4835-a426-d77cf4a83777
2025-02-20 02:22:52,169 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-20 02:22:52,169 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,176 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/535cb016-e06a-4bf0-b527-7bb6a0a5054a
2025-02-20 02:22:52,187 - INFO - Verified VN network id 10 for VN fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,187 - INFO - Verifications in API Server for VN ctest-vn-62375366 passed
2025-02-20 02:22:52,188 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,196 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/535cb016-e06a-4bf0-b527-7bb6a0a5054a
2025-02-20 02:22:52,203 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/535cb016-e06a-4bf0-b527-7bb6a0a5054a
2025-02-20 02:22:52,209 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/5ca6faca-7dd0-4835-a426-d77cf4a83777
2025-02-20 02:22:52,222 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-62375366', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07585795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18116365713146269003', 'uuid-lslong': '11896782372888344237'}, 'enable': 'true', 'created': '2025-02-20T02:22:49', 'last-modified': '2025-02-20T02:22:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296604'}
2025-02-20 02:22:52,229 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-20 02:22:52,229 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62375366 passed
2025-02-20 02:22:52,229 - DEBUG - ====Verifying policy data for ctest-vn-62375366 in API_Server ======
2025-02-20 02:22:52,229 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-02-20 02:22:52,235 - DEBUG - Requesting: http://10.0.0.37:8082/domain/6c622e75-91ef-47a7-91eb-55d2b2a14425
2025-02-20 02:22:52,246 - DEBUG - Requesting: http://10.0.0.37:8082/project/6e654ec5-ff32-4a8a-92c4-e44797d36365
2025-02-20 02:22:52,313 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/fb6a42a1-a926-4d4b-a519-dc894a2376ad
2025-02-20 02:22:52,321 - DEBUG - ==>Verifying data for policy with id: 93718d36-3e0a-426f-8bbf-9621e8266857, fqn: ['default-domain', 'ctest-TestBasicPolicy-07585795', 'ctest-policy-allow-all-17691126']
2025-02-20 02:22:52,321 - INFO - VN ctest-vn-62375366 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:22:52,321 - DEBUG - Verifying the vn in opserver
2025-02-20 02:22:52,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-62375366 virtual network link through opserver 10.0.0.37
2025-02-20 02:22:52,321 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-02-20 02:22:52,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-62375366', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-62375366?flat'}
2025-02-20 02:22:52,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07585795:ctest-vn-62375366 is found in opserver
2025-02-20 02:22:52,341 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:22:52,347 - DEBUG - VRF ids for VN ctest-vn-62375366: {}
2025-02-20 02:22:52,408 - DEBUG - Services list from nova: [