2025-06-14 19:43:58,452 - INFO - Domain Default found not creating
2025-06-14 19:43:58,594 - INFO - Project ctest-TestBasicPolicy-81236524 not found, creating it
2025-06-14 19:43:59,067 - INFO - Created Project:ctest-TestBasicPolicy-81236524, ID : e16ae0bc-5bd9-4192-84c1-d375c2d64573
2025-06-14 19:44:00,638 - INFO - ================================================================================
2025-06-14 19:44:00,638 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-14 19:44:00,638 - 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-06-14 19:44:00,897 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-06-14 19:44:00,898 - INFO - Initial checks done. Running the testcase now
2025-06-14 19:44:00,898 - INFO -
2025-06-14 19:44:01,499 - DEBUG - Response for create_network : {'network': {'id': '1cffe7ba-c91d-4323-8e54-e5d45c11ecc7', 'name': 'ctest-vn-18159024', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-vn-18159024'], 'port_security_enabled': True, 'description': ''}}
2025-06-14 19:44:01,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '7753b22b-2578-48ea-8165-d90690a975f3', 'name': '', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'network_id': '1cffe7ba-c91d-4323-8e54-e5d45c11ecc7', 'ip_version': 4, 'cidr': '105.122.105.128/26', 'allocation_pools': [{'start': '105.122.105.130', 'end': '105.122.105.190'}], 'gateway_ip': '105.122.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.122.105.130', 'tags': [], 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573'}}
2025-06-14 19:44:01,743 - INFO - Created VN ctest-vn-18159024
2025-06-14 19:44:01,802 - DEBUG - VN ctest-vn-18159024 UUID is 1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:02,115 - DEBUG - Response for create_network : {'network': {'id': '4f29a340-eba9-4ff5-a083-8f2a74922c2c', 'name': 'ctest-vn-65327644', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-vn-65327644'], 'port_security_enabled': True, 'description': ''}}
2025-06-14 19:44:02,354 - DEBUG - Response for create_subnet : {'subnet': {'id': '10fbe528-f66e-4e46-a535-4fbd84092907', 'name': '', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'network_id': '4f29a340-eba9-4ff5-a083-8f2a74922c2c', 'ip_version': 4, 'cidr': '94.136.18.128/26', 'allocation_pools': [{'start': '94.136.18.130', 'end': '94.136.18.190'}], 'gateway_ip': '94.136.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.136.18.130', 'tags': [], 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573'}}
2025-06-14 19:44:02,373 - INFO - Created VN ctest-vn-65327644
2025-06-14 19:44:02,426 - DEBUG - VN ctest-vn-65327644 UUID is 4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:02,545 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024, 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-81236524:ctest-vn-65327644, 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-06-14 19:44:02,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1cffe7ba-c91d-4323-8e54-e5d45c11ecc7', 'name': 'ctest-vn-18159024', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7753b22b-2578-48ea-8165-d90690a975f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-vn-18159024'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-policy-allow-all-39322724']], 'subnet_ipam': [{'subnet_cidr': '105.122.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-14 19:44:03,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f29a340-eba9-4ff5-a083-8f2a74922c2c', 'name': 'ctest-vn-65327644', 'tenant_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'project_id': 'e16ae0bc5bd9419284c1d375c2d64573', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10fbe528-f66e-4e46-a535-4fbd84092907'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-vn-65327644'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-policy-allow-all-39322724']], 'subnet_ipam': [{'subnet_cidr': '94.136.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-14 19:44:03,251 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-14 19:44:03,605 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-14 19:44:03,634 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4abd1b0e-204a-48d2-b556-0e1d2f8727c5
2025-06-14 19:44:03,650 - DEBUG - Requesting: http://10.0.0.49:8082/project/e16ae0bc-5bd9-4192-84c1-d375c2d64573
2025-06-14 19:44:03,725 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,737 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,748 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/6eaacf61-bf95-4478-9197-f423ff98a3d4
2025-06-14 19:44:03,756 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/6eaacf61-bf95-4478-9197-f423ff98a3d4
2025-06-14 19:44:03,764 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/356e7e93-c9f6-453f-ad34-1c2f5a47e680
2025-06-14 19:44:03,772 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-14 19:44:03,772 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,783 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/6eaacf61-bf95-4478-9197-f423ff98a3d4
2025-06-14 19:44:03,798 - INFO - Verified VN network id 8 for VN 1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,798 - INFO - Verifications in API Server for VN ctest-vn-18159024 passed
2025-06-14 19:44:03,798 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,809 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/6eaacf61-bf95-4478-9197-f423ff98a3d4
2025-06-14 19:44:03,817 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/6eaacf61-bf95-4478-9197-f423ff98a3d4
2025-06-14 19:44:03,825 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/356e7e93-c9f6-453f-ad34-1c2f5a47e680
2025-06-14 19:44:03,841 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81236524', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2089643541547270947', 'uuid-lslong': '10256074951669968071'}, 'enable': 'true', 'created': '2025-06-14T19:44:01', 'last-modified': '2025-06-14T19:44:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018837'}
2025-06-14 19:44:03,850 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-14 19:44:03,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18159024 passed
2025-06-14 19:44:03,850 - DEBUG - ====Verifying policy data for ctest-vn-18159024 in API_Server ======
2025-06-14 19:44:03,850 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-14 19:44:03,858 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4abd1b0e-204a-48d2-b556-0e1d2f8727c5
2025-06-14 19:44:03,870 - DEBUG - Requesting: http://10.0.0.49:8082/project/e16ae0bc-5bd9-4192-84c1-d375c2d64573
2025-06-14 19:44:03,943 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1cffe7ba-c91d-4323-8e54-e5d45c11ecc7
2025-06-14 19:44:03,954 - DEBUG - ==>Verifying data for policy with id: 93b50214-823f-477c-8d63-9ac3cfa142e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-policy-allow-all-39322724']
2025-06-14 19:44:03,954 - INFO - VN ctest-vn-18159024 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-14 19:44:03,954 - DEBUG - Verifying the vn in opserver
2025-06-14 19:44:03,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024 virtual network link through opserver 10.0.0.49
2025-06-14 19:44:03,954 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-14 19:44:04,292 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-14 19:44:04,350 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024?flat'}
2025-06-14 19:44:04,350 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-18159024 is found in opserver
2025-06-14 19:44:04,362 - DEBUG - Do not have enough data to verify VN in agent
2025-06-14 19:44:04,368 - DEBUG - VRF ids for VN ctest-vn-18159024: {}
2025-06-14 19:44:04,368 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-14 19:44:04,375 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4abd1b0e-204a-48d2-b556-0e1d2f8727c5
2025-06-14 19:44:04,388 - DEBUG - Requesting: http://10.0.0.49:8082/project/e16ae0bc-5bd9-4192-84c1-d375c2d64573
2025-06-14 19:44:04,467 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,481 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,494 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13afb849-c460-4a6e-af9d-6a81a71e2031
2025-06-14 19:44:04,503 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13afb849-c460-4a6e-af9d-6a81a71e2031
2025-06-14 19:44:04,514 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7f3f7d2b-3a9d-47be-9176-684c23b23c0b
2025-06-14 19:44:04,522 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-14 19:44:04,522 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,533 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13afb849-c460-4a6e-af9d-6a81a71e2031
2025-06-14 19:44:04,554 - INFO - Verified VN network id 9 for VN 4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,554 - INFO - Verifications in API Server for VN ctest-vn-65327644 passed
2025-06-14 19:44:04,554 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,567 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13afb849-c460-4a6e-af9d-6a81a71e2031
2025-06-14 19:44:04,577 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13afb849-c460-4a6e-af9d-6a81a71e2031
2025-06-14 19:44:04,587 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7f3f7d2b-3a9d-47be-9176-684c23b23c0b
2025-06-14 19:44:04,602 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-65327644', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81236524', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5704269902268420085', 'uuid-lslong': '11566245680524700716'}, 'enable': 'true', 'created': '2025-06-14T19:44:02', 'last-modified': '2025-06-14T19:44:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540403'}
2025-06-14 19:44:04,611 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-14 19:44:04,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65327644 passed
2025-06-14 19:44:04,612 - DEBUG - ====Verifying policy data for ctest-vn-65327644 in API_Server ======
2025-06-14 19:44:04,612 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-14 19:44:04,618 - DEBUG - Requesting: http://10.0.0.49:8082/domain/4abd1b0e-204a-48d2-b556-0e1d2f8727c5
2025-06-14 19:44:04,632 - DEBUG - Requesting: http://10.0.0.49:8082/project/e16ae0bc-5bd9-4192-84c1-d375c2d64573
2025-06-14 19:44:04,719 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4f29a340-eba9-4ff5-a083-8f2a74922c2c
2025-06-14 19:44:04,731 - DEBUG - ==>Verifying data for policy with id: 93b50214-823f-477c-8d63-9ac3cfa142e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-81236524', 'ctest-policy-allow-all-39322724']
2025-06-14 19:44:04,731 - INFO - VN ctest-vn-65327644 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-14 19:44:04,731 - DEBUG - Verifying the vn in opserver
2025-06-14 19:44:04,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-65327644 virtual network link through opserver 10.0.0.49
2025-06-14 19:44:04,731 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-14 19:44:04,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-65327644', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-65327644?flat'}
2025-06-14 19:44:04,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81236524:ctest-vn-65327644 is found in opserver
2025-06-14 19:44:04,755 - DEBUG - Do not have enough data to verify VN in agent
2025-06-14 19:44:04,761 - DEBUG - VRF ids for VN ctest-vn-65327644: {}
2025-06-14 19:44:04,819 - DEBUG - Services list from nova: [