2025-10-31 03:09:22,437 - INFO - Domain Default found not creating
2025-10-31 03:09:22,566 - INFO - Project ctest-TestBasicPolicy-47402719 not found, creating it
2025-10-31 03:09:22,988 - INFO - Created Project:ctest-TestBasicPolicy-47402719, ID : e71871d9-ec10-45e8-b53b-ba44ffe639e7
2025-10-31 03:09:24,403 - INFO - ================================================================================
2025-10-31 03:09:24,404 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 03:09:24,404 - 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-10-31 03:09:24,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with
2025-10-31 03:09:24,656 - INFO - Initial checks done. Running the testcase now
2025-10-31 03:09:24,656 - INFO -
2025-10-31 03:09:25,171 - DEBUG - Response for create_network : {'network': {'id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'name': 'ctest-vn-78372662', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-78372662'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 03:09:25,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c6a0772-56e7-4b76-a983-c2943f76a48e', 'name': '', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'network_id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'ip_version': 4, 'cidr': '50.85.148.0/26', 'allocation_pools': [{'start': '50.85.148.2', 'end': '50.85.148.62'}], 'gateway_ip': '50.85.148.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.85.148.2', 'tags': [], 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7'}}
2025-10-31 03:09:25,363 - INFO - Created VN ctest-vn-78372662
2025-10-31 03:09:25,415 - DEBUG - VN ctest-vn-78372662 UUID is 484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:25,731 - DEBUG - Response for create_network : {'network': {'id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'name': 'ctest-vn-94423272', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-94423272'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 03:09:25,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '7eb9384d-dcf9-464e-990e-f9ccc45fa262', 'name': '', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'network_id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'ip_version': 4, 'cidr': '170.73.206.128/26', 'allocation_pools': [{'start': '170.73.206.130', 'end': '170.73.206.190'}], 'gateway_ip': '170.73.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.73.206.130', 'tags': [], 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7'}}
2025-10-31 03:09:25,913 - INFO - Created VN ctest-vn-94423272
2025-10-31 03:09:25,967 - DEBUG - VN ctest-vn-94423272 UUID is 1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:26,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662, 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-47402719:ctest-vn-94423272, 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-10-31 03:09:26,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'name': 'ctest-vn-78372662', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c6a0772-56e7-4b76-a983-c2943f76a48e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-78372662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']], 'subnet_ipam': [{'subnet_cidr': '50.85.148.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 03:09:26,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'name': 'ctest-vn-94423272', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7eb9384d-dcf9-464e-990e-f9ccc45fa262'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-94423272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']], 'subnet_ipam': [{'subnet_cidr': '170.73.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 03:09:26,803 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-10-31 03:09:27,097 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-10-31 03:09:27,123 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e
2025-10-31 03:09:27,133 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7
2025-10-31 03:09:27,202 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,211 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,219 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f
2025-10-31 03:09:27,224 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f
2025-10-31 03:09:27,230 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c499ade7-1913-423f-a512-2908e457cf04
2025-10-31 03:09:27,235 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 03:09:27,235 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,243 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f
2025-10-31 03:09:27,253 - INFO - Verified VN network id 12 for VN 484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,253 - INFO - Verifications in API Server for VN ctest-vn-78372662 passed
2025-10-31 03:09:27,254 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,261 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f
2025-10-31 03:09:27,266 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f
2025-10-31 03:09:27,271 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c499ade7-1913-423f-a512-2908e457cf04
2025-10-31 03:09:27,281 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47402719', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5207975362123157426', 'uuid-lslong': '10448848353631796012'}, 'enable': 'true', 'created': '2025-10-31T03:09:25', 'last-modified': '2025-10-31T03:09:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911559'}
2025-10-31 03:09:27,286 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 03:09:27,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78372662 passed
2025-10-31 03:09:27,287 - DEBUG - ====Verifying policy data for ctest-vn-78372662 in API_Server ======
2025-10-31 03:09:27,287 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-10-31 03:09:27,291 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e
2025-10-31 03:09:27,300 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7
2025-10-31 03:09:27,367 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c
2025-10-31 03:09:27,375 - DEBUG - ==>Verifying data for policy with id: d9310f4a-0cf8-404d-ad8f-cb112ad36b71, fqn: ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']
2025-10-31 03:09:27,375 - INFO - VN ctest-vn-78372662 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 03:09:27,375 - DEBUG - Verifying the vn in opserver
2025-10-31 03:09:27,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662 virtual network link through opserver 10.0.0.129
2025-10-31 03:09:27,375 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-31 03:09:27,663 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-31 03:09:27,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662?flat'}
2025-10-31 03:09:27,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662 is found in opserver
2025-10-31 03:09:27,718 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 03:09:27,722 - DEBUG - VRF ids for VN ctest-vn-78372662: {}
2025-10-31 03:09:27,722 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-10-31 03:09:27,727 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e
2025-10-31 03:09:27,735 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7
2025-10-31 03:09:27,802 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,811 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,819 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19
2025-10-31 03:09:27,825 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19
2025-10-31 03:09:27,830 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/786ba9ed-7f2b-4b51-9020-bb4215a9085b
2025-10-31 03:09:27,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 03:09:27,836 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,843 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19
2025-10-31 03:09:27,855 - INFO - Verified VN network id 13 for VN 1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,855 - INFO - Verifications in API Server for VN ctest-vn-94423272 passed
2025-10-31 03:09:27,855 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,862 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19
2025-10-31 03:09:27,868 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19
2025-10-31 03:09:27,874 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/786ba9ed-7f2b-4b51-9020-bb4215a9085b
2025-10-31 03:09:27,883 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47402719', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2282626942136961233', 'uuid-lslong': '10541126287701336277'}, 'enable': 'true', 'created': '2025-10-31T03:09:25', 'last-modified': '2025-10-31T03:09:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296302'}
2025-10-31 03:09:27,888 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 03:09:27,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94423272 passed
2025-10-31 03:09:27,888 - DEBUG - ====Verifying policy data for ctest-vn-94423272 in API_Server ======
2025-10-31 03:09:27,888 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-10-31 03:09:27,893 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e
2025-10-31 03:09:27,904 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7
2025-10-31 03:09:27,970 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5
2025-10-31 03:09:27,978 - DEBUG - ==>Verifying data for policy with id: d9310f4a-0cf8-404d-ad8f-cb112ad36b71, fqn: ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']
2025-10-31 03:09:27,978 - INFO - VN ctest-vn-94423272 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 03:09:27,978 - DEBUG - Verifying the vn in opserver
2025-10-31 03:09:27,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272 virtual network link through opserver 10.0.0.129
2025-10-31 03:09:27,978 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-31 03:09:27,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272?flat'}
2025-10-31 03:09:27,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272 is found in opserver
2025-10-31 03:09:27,994 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 03:09:27,997 - DEBUG - VRF ids for VN ctest-vn-94423272: {}
2025-10-31 03:09:28,050 - DEBUG - Services list from nova: [