2025-09-04 02:07:59,860 - INFO - Domain Default found not creating
2025-09-04 02:07:59,993 - INFO - Project ctest-TestBasicPolicy-16549317 not found, creating it
2025-09-04 02:08:00,426 - INFO - Created Project:ctest-TestBasicPolicy-16549317, ID : 0818e4ff-2cd5-4aa1-829d-589706486388
2025-09-04 02:08:01,981 - INFO - ================================================================================
2025-09-04 02:08:01,981 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 02:08:01,981 - 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-09-04 02:08:02,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0'}} with
2025-09-04 02:08:02,238 - INFO - Initial checks done. Running the testcase now
2025-09-04 02:08:02,238 - INFO -
2025-09-04 02:08:02,817 - DEBUG - Response for create_network : {'network': {'id': 'c8622d17-c683-4dc3-bcce-8542fad9f0b8', 'name': 'ctest-vn-10070671', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'project_id': '0818e4ff2cd54aa1829d589706486388', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-vn-10070671'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:03,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c1d9bdb-ec91-4ae2-8cf5-cf03fc674e6c', 'name': '', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'network_id': 'c8622d17-c683-4dc3-bcce-8542fad9f0b8', 'ip_version': 4, 'cidr': '203.231.9.192/26', 'allocation_pools': [{'start': '203.231.9.194', 'end': '203.231.9.254'}], 'gateway_ip': '203.231.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.231.9.194', 'tags': [], 'project_id': '0818e4ff2cd54aa1829d589706486388'}}
2025-09-04 02:08:03,046 - INFO - Created VN ctest-vn-10070671
2025-09-04 02:08:03,099 - DEBUG - VN ctest-vn-10070671 UUID is c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:03,422 - DEBUG - Response for create_network : {'network': {'id': 'c711386c-ca97-4fd3-b6e9-c14a0e8d035c', 'name': 'ctest-vn-07161264', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'project_id': '0818e4ff2cd54aa1829d589706486388', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-vn-07161264'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:03,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '764868d9-0196-4bcf-8629-2e1f7606f02b', 'name': '', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'network_id': 'c711386c-ca97-4fd3-b6e9-c14a0e8d035c', 'ip_version': 4, 'cidr': '217.125.143.0/26', 'allocation_pools': [{'start': '217.125.143.2', 'end': '217.125.143.62'}], 'gateway_ip': '217.125.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.125.143.2', 'tags': [], 'project_id': '0818e4ff2cd54aa1829d589706486388'}}
2025-09-04 02:08:03,635 - INFO - Created VN ctest-vn-07161264
2025-09-04 02:08:03,687 - DEBUG - VN ctest-vn-07161264 UUID is c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:03,835 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671, 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-16549317:ctest-vn-07161264, 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-09-04 02:08:04,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8622d17-c683-4dc3-bcce-8542fad9f0b8', 'name': 'ctest-vn-10070671', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'project_id': '0818e4ff2cd54aa1829d589706486388', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c1d9bdb-ec91-4ae2-8cf5-cf03fc674e6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-vn-10070671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-policy-allow-all-74970724']], 'subnet_ipam': [{'subnet_cidr': '203.231.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:04,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c711386c-ca97-4fd3-b6e9-c14a0e8d035c', 'name': 'ctest-vn-07161264', 'tenant_id': '0818e4ff2cd54aa1829d589706486388', 'project_id': '0818e4ff2cd54aa1829d589706486388', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['764868d9-0196-4bcf-8629-2e1f7606f02b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-vn-07161264'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-policy-allow-all-74970724']], 'subnet_ipam': [{'subnet_cidr': '217.125.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:04,483 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-09-04 02:08:04,819 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-09-04 02:08:04,847 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09
2025-09-04 02:08:04,860 - DEBUG - Requesting: http://10.0.0.61:8082/project/0818e4ff-2cd5-4aa1-829d-589706486388
2025-09-04 02:08:04,939 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:04,949 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:04,958 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/b9f69907-0852-47ee-aee7-3f711128aa0c
2025-09-04 02:08:04,965 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/b9f69907-0852-47ee-aee7-3f711128aa0c
2025-09-04 02:08:04,971 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/beaa83e8-aea7-40bf-a2d0-66a51995e3c9
2025-09-04 02:08:04,977 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 02:08:04,977 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:04,985 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/b9f69907-0852-47ee-aee7-3f711128aa0c
2025-09-04 02:08:04,999 - INFO - Verified VN network id 11 for VN c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:04,999 - INFO - Verifications in API Server for VN ctest-vn-10070671 passed
2025-09-04 02:08:04,999 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:05,008 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/b9f69907-0852-47ee-aee7-3f711128aa0c
2025-09-04 02:08:05,015 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/b9f69907-0852-47ee-aee7-3f711128aa0c
2025-09-04 02:08:05,021 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/beaa83e8-aea7-40bf-a2d0-66a51995e3c9
2025-09-04 02:08:05,031 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16549317', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14439152935441223107', 'uuid-lslong': '13604958047055769784'}, 'enable': 'true', 'created': '2025-09-04T02:08:02', 'last-modified': '2025-09-04T02:08:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929898'}
2025-09-04 02:08:05,039 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 02:08:05,039 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10070671 passed
2025-09-04 02:08:05,039 - DEBUG - ====Verifying policy data for ctest-vn-10070671 in API_Server ======
2025-09-04 02:08:05,039 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-09-04 02:08:05,044 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09
2025-09-04 02:08:05,054 - DEBUG - Requesting: http://10.0.0.61:8082/project/0818e4ff-2cd5-4aa1-829d-589706486388
2025-09-04 02:08:05,124 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c8622d17-c683-4dc3-bcce-8542fad9f0b8
2025-09-04 02:08:05,133 - DEBUG - ==>Verifying data for policy with id: 73ebad18-a9b0-4fb4-809d-d2fe4b181a56, fqn: ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-policy-allow-all-74970724']
2025-09-04 02:08:05,133 - INFO - VN ctest-vn-10070671 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 02:08:05,133 - DEBUG - Verifying the vn in opserver
2025-09-04 02:08:05,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671 virtual network link through opserver 10.0.0.61
2025-09-04 02:08:05,133 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-09-04 02:08:05,464 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-09-04 02:08:05,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671?flat'}
2025-09-04 02:08:05,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-10070671 is found in opserver
2025-09-04 02:08:05,527 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 02:08:05,531 - DEBUG - VRF ids for VN ctest-vn-10070671: {}
2025-09-04 02:08:05,531 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-09-04 02:08:05,536 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09
2025-09-04 02:08:05,547 - DEBUG - Requesting: http://10.0.0.61:8082/project/0818e4ff-2cd5-4aa1-829d-589706486388
2025-09-04 02:08:05,613 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,626 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,636 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4b20912b-ac7d-4e3f-aaf0-dbef8400b2bf
2025-09-04 02:08:05,645 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4b20912b-ac7d-4e3f-aaf0-dbef8400b2bf
2025-09-04 02:08:05,654 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/dac45c43-52e4-45bc-8697-a99784cd3043
2025-09-04 02:08:05,661 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 02:08:05,661 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,670 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4b20912b-ac7d-4e3f-aaf0-dbef8400b2bf
2025-09-04 02:08:05,684 - INFO - Verified VN network id 12 for VN c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,684 - INFO - Verifications in API Server for VN ctest-vn-07161264 passed
2025-09-04 02:08:05,684 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,691 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4b20912b-ac7d-4e3f-aaf0-dbef8400b2bf
2025-09-04 02:08:05,697 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4b20912b-ac7d-4e3f-aaf0-dbef8400b2bf
2025-09-04 02:08:05,703 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/dac45c43-52e4-45bc-8697-a99784cd3043
2025-09-04 02:08:05,712 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-07161264', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16549317', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14344308328058277843', 'uuid-lslong': '13180278308292330332'}, 'enable': 'true', 'created': '2025-09-04T02:08:03', 'last-modified': '2025-09-04T02:08:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390326'}
2025-09-04 02:08:05,718 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 02:08:05,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07161264 passed
2025-09-04 02:08:05,718 - DEBUG - ====Verifying policy data for ctest-vn-07161264 in API_Server ======
2025-09-04 02:08:05,718 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-09-04 02:08:05,723 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09
2025-09-04 02:08:05,732 - DEBUG - Requesting: http://10.0.0.61:8082/project/0818e4ff-2cd5-4aa1-829d-589706486388
2025-09-04 02:08:05,799 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/c711386c-ca97-4fd3-b6e9-c14a0e8d035c
2025-09-04 02:08:05,808 - DEBUG - ==>Verifying data for policy with id: 73ebad18-a9b0-4fb4-809d-d2fe4b181a56, fqn: ['default-domain', 'ctest-TestBasicPolicy-16549317', 'ctest-policy-allow-all-74970724']
2025-09-04 02:08:05,809 - INFO - VN ctest-vn-07161264 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 02:08:05,809 - DEBUG - Verifying the vn in opserver
2025-09-04 02:08:05,809 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-07161264 virtual network link through opserver 10.0.0.61
2025-09-04 02:08:05,809 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-09-04 02:08:05,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-07161264', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-07161264?flat'}
2025-09-04 02:08:05,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16549317:ctest-vn-07161264 is found in opserver
2025-09-04 02:08:05,827 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 02:08:05,831 - DEBUG - VRF ids for VN ctest-vn-07161264: {}
2025-09-04 02:08:05,891 - DEBUG - Services list from nova: [