2025-05-06 10:29:59,905 - INFO - Domain Default found not creating
2025-05-06 10:30:00,067 - INFO - Project ctest-TestBasicPolicy-56864922 not found, creating it
2025-05-06 10:30:00,546 - INFO - Created Project:ctest-TestBasicPolicy-56864922, ID : 442dd16b-20a3-45a6-991e-64b482937979
2025-05-06 10:30:02,161 - INFO - ================================================================================
2025-05-06 10:30:02,162 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-06 10:30:02,162 - 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-05-06 10:30:02,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with
2025-05-06 10:30:02,416 - INFO - Initial checks done. Running the testcase now
2025-05-06 10:30:02,416 - INFO -
2025-05-06 10:30:03,024 - DEBUG - Response for create_network : {'network': {'id': '47f2243e-f3c9-4c74-9a15-15426f167349', 'name': 'ctest-vn-09680259', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'project_id': '442dd16b20a345a6991e64b482937979', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-vn-09680259'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 10:30:03,198 - DEBUG - Response for create_subnet : {'subnet': {'id': '51b3f883-f3c9-4b9e-af10-aaa392fa7fc1', 'name': '', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'network_id': '47f2243e-f3c9-4c74-9a15-15426f167349', 'ip_version': 4, 'cidr': '105.230.141.0/26', 'allocation_pools': [{'start': '105.230.141.2', 'end': '105.230.141.62'}], 'gateway_ip': '105.230.141.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.230.141.2', 'tags': [], 'project_id': '442dd16b20a345a6991e64b482937979'}}
2025-05-06 10:30:03,217 - INFO - Created VN ctest-vn-09680259
2025-05-06 10:30:03,270 - DEBUG - VN ctest-vn-09680259 UUID is 47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:03,564 - DEBUG - Response for create_network : {'network': {'id': '08683c8a-c967-4ce2-a757-09a80061350b', 'name': 'ctest-vn-10848045', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'project_id': '442dd16b20a345a6991e64b482937979', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-vn-10848045'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 10:30:03,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b528bdb3-03ea-4e7c-b111-7543e059d5a8', 'name': '', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'network_id': '08683c8a-c967-4ce2-a757-09a80061350b', 'ip_version': 4, 'cidr': '115.231.152.128/26', 'allocation_pools': [{'start': '115.231.152.130', 'end': '115.231.152.190'}], 'gateway_ip': '115.231.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.231.152.130', 'tags': [], 'project_id': '442dd16b20a345a6991e64b482937979'}}
2025-05-06 10:30:03,791 - INFO - Created VN ctest-vn-10848045
2025-05-06 10:30:03,846 - DEBUG - VN ctest-vn-10848045 UUID is 08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:03,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259, 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-56864922:ctest-vn-10848045, 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-05-06 10:30:04,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47f2243e-f3c9-4c74-9a15-15426f167349', 'name': 'ctest-vn-09680259', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'project_id': '442dd16b20a345a6991e64b482937979', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51b3f883-f3c9-4b9e-af10-aaa392fa7fc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-vn-09680259'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-policy-allow-all-38391624']], 'subnet_ipam': [{'subnet_cidr': '105.230.141.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 10:30:04,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08683c8a-c967-4ce2-a757-09a80061350b', 'name': 'ctest-vn-10848045', 'tenant_id': '442dd16b20a345a6991e64b482937979', 'project_id': '442dd16b20a345a6991e64b482937979', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b528bdb3-03ea-4e7c-b111-7543e059d5a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-vn-10848045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-policy-allow-all-38391624']], 'subnet_ipam': [{'subnet_cidr': '115.231.152.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 10:30:04,686 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 10:30:05,032 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 10:30:05,067 - DEBUG - Requesting: http://10.0.0.56:8082/domain/733ed326-45ab-4e4f-9280-ffcea071bf8e
2025-05-06 10:30:05,083 - DEBUG - Requesting: http://10.0.0.56:8082/project/442dd16b-20a3-45a6-991e-64b482937979
2025-05-06 10:30:05,161 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,175 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,187 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e4d8d59-72c8-47f4-92fc-2d941ae2e310
2025-05-06 10:30:05,196 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e4d8d59-72c8-47f4-92fc-2d941ae2e310
2025-05-06 10:30:05,204 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/3fc2c65c-c651-468b-af8a-debe16370a97
2025-05-06 10:30:05,211 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 10:30:05,211 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,222 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e4d8d59-72c8-47f4-92fc-2d941ae2e310
2025-05-06 10:30:05,237 - INFO - Verified VN network id 8 for VN 47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,237 - INFO - Verifications in API Server for VN ctest-vn-09680259 passed
2025-05-06 10:30:05,237 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,248 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e4d8d59-72c8-47f4-92fc-2d941ae2e310
2025-05-06 10:30:05,256 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/6e4d8d59-72c8-47f4-92fc-2d941ae2e310
2025-05-06 10:30:05,263 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/3fc2c65c-c651-468b-af8a-debe16370a97
2025-05-06 10:30:05,277 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56864922', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5184245973853490292', 'uuid-lslong': '11102803831427593033'}, 'enable': 'true', 'created': '2025-05-06T10:30:02', 'last-modified': '2025-05-06T10:30:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033266'}
2025-05-06 10:30:05,285 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 10:30:05,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09680259 passed
2025-05-06 10:30:05,285 - DEBUG - ====Verifying policy data for ctest-vn-09680259 in API_Server ======
2025-05-06 10:30:05,285 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 10:30:05,292 - DEBUG - Requesting: http://10.0.0.56:8082/domain/733ed326-45ab-4e4f-9280-ffcea071bf8e
2025-05-06 10:30:05,309 - DEBUG - Requesting: http://10.0.0.56:8082/project/442dd16b-20a3-45a6-991e-64b482937979
2025-05-06 10:30:05,391 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/47f2243e-f3c9-4c74-9a15-15426f167349
2025-05-06 10:30:05,403 - DEBUG - ==>Verifying data for policy with id: 9ae1af90-5d18-4750-8269-381231c27fbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-policy-allow-all-38391624']
2025-05-06 10:30:05,403 - INFO - VN ctest-vn-09680259 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 10:30:05,403 - DEBUG - Verifying the vn in opserver
2025-05-06 10:30:05,403 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259 virtual network link through opserver 10.0.0.56
2025-05-06 10:30:05,403 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 10:30:05,742 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 10:30:05,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259?flat'}
2025-05-06 10:30:05,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-09680259 is found in opserver
2025-05-06 10:30:05,817 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 10:30:05,824 - DEBUG - VRF ids for VN ctest-vn-09680259: {}
2025-05-06 10:30:05,824 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 10:30:05,831 - DEBUG - Requesting: http://10.0.0.56:8082/domain/733ed326-45ab-4e4f-9280-ffcea071bf8e
2025-05-06 10:30:05,847 - DEBUG - Requesting: http://10.0.0.56:8082/project/442dd16b-20a3-45a6-991e-64b482937979
2025-05-06 10:30:05,927 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:05,941 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:05,952 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e25977a7-f5e2-4695-b44a-8a26f91499af
2025-05-06 10:30:05,959 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e25977a7-f5e2-4695-b44a-8a26f91499af
2025-05-06 10:30:05,967 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a0bee59b-e234-4b00-8d11-c375215cdc76
2025-05-06 10:30:05,976 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 10:30:05,976 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:05,988 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e25977a7-f5e2-4695-b44a-8a26f91499af
2025-05-06 10:30:06,006 - INFO - Verified VN network id 9 for VN 08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:06,006 - INFO - Verifications in API Server for VN ctest-vn-10848045 passed
2025-05-06 10:30:06,006 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:06,018 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e25977a7-f5e2-4695-b44a-8a26f91499af
2025-05-06 10:30:06,027 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e25977a7-f5e2-4695-b44a-8a26f91499af
2025-05-06 10:30:06,035 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a0bee59b-e234-4b00-8d11-c375215cdc76
2025-05-06 10:30:06,050 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-10848045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56864922', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '605800716663475426', 'uuid-lslong': '12058117144473318667'}, 'enable': 'true', 'created': '2025-05-06T10:30:03', 'last-modified': '2025-05-06T10:30:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.563645'}
2025-05-06 10:30:06,058 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 10:30:06,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10848045 passed
2025-05-06 10:30:06,058 - DEBUG - ====Verifying policy data for ctest-vn-10848045 in API_Server ======
2025-05-06 10:30:06,058 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-06 10:30:06,065 - DEBUG - Requesting: http://10.0.0.56:8082/domain/733ed326-45ab-4e4f-9280-ffcea071bf8e
2025-05-06 10:30:06,078 - DEBUG - Requesting: http://10.0.0.56:8082/project/442dd16b-20a3-45a6-991e-64b482937979
2025-05-06 10:30:06,158 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/08683c8a-c967-4ce2-a757-09a80061350b
2025-05-06 10:30:06,170 - DEBUG - ==>Verifying data for policy with id: 9ae1af90-5d18-4750-8269-381231c27fbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-56864922', 'ctest-policy-allow-all-38391624']
2025-05-06 10:30:06,170 - INFO - VN ctest-vn-10848045 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 10:30:06,170 - DEBUG - Verifying the vn in opserver
2025-05-06 10:30:06,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-10848045 virtual network link through opserver 10.0.0.56
2025-05-06 10:30:06,170 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-06 10:30:06,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-10848045', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-10848045?flat'}
2025-05-06 10:30:06,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56864922:ctest-vn-10848045 is found in opserver
2025-05-06 10:30:06,196 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 10:30:06,202 - DEBUG - VRF ids for VN ctest-vn-10848045: {}
2025-05-06 10:30:06,263 - DEBUG - Services list from nova: [