2025-08-11 15:44:09,595 - INFO - Domain Default found not creating
2025-08-11 15:44:09,714 - INFO - Project ctest-TestBasicPolicy-14572775 not found, creating it
2025-08-11 15:44:10,153 - INFO - Created Project:ctest-TestBasicPolicy-14572775, ID : 534daf0d-f5e1-4e48-9dd1-9fb2c8deed1b
2025-08-11 15:44:11,461 - INFO - ================================================================================
2025-08-11 15:44:11,461 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 15:44:11,461 - 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-08-11 15:44:11,716 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with
2025-08-11 15:44:11,716 - INFO - Initial checks done. Running the testcase now
2025-08-11 15:44:11,716 - INFO -
2025-08-11 15:44:12,256 - DEBUG - Response for create_network : {'network': {'id': 'ade54da4-35a6-4069-9f3a-0ed12fc23706', 'name': 'ctest-vn-18475657', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'project_id': '534daf0df5e14e489dd19fb2c8deed1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-vn-18475657'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:44:12,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '2160e944-300b-46fe-8d67-ab79c86ab4e3', 'name': '', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'network_id': 'ade54da4-35a6-4069-9f3a-0ed12fc23706', 'ip_version': 4, 'cidr': '194.34.180.128/26', 'allocation_pools': [{'start': '194.34.180.130', 'end': '194.34.180.190'}], 'gateway_ip': '194.34.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.34.180.130', 'tags': [], 'project_id': '534daf0df5e14e489dd19fb2c8deed1b'}}
2025-08-11 15:44:12,425 - INFO - Created VN ctest-vn-18475657
2025-08-11 15:44:12,482 - DEBUG - VN ctest-vn-18475657 UUID is ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:12,788 - DEBUG - Response for create_network : {'network': {'id': '97f085ef-f903-42f0-94bb-db667fa4ecdc', 'name': 'ctest-vn-60409578', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'project_id': '534daf0df5e14e489dd19fb2c8deed1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-vn-60409578'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:44:12,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '95ce09ca-d1bc-4cd3-bbb9-8a53b13ddc7d', 'name': '', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'network_id': '97f085ef-f903-42f0-94bb-db667fa4ecdc', 'ip_version': 4, 'cidr': '208.209.121.128/26', 'allocation_pools': [{'start': '208.209.121.130', 'end': '208.209.121.190'}], 'gateway_ip': '208.209.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.209.121.130', 'tags': [], 'project_id': '534daf0df5e14e489dd19fb2c8deed1b'}}
2025-08-11 15:44:13,005 - INFO - Created VN ctest-vn-60409578
2025-08-11 15:44:13,062 - DEBUG - VN ctest-vn-60409578 UUID is 97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:13,210 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657, 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-14572775:ctest-vn-60409578, 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-08-11 15:44:13,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ade54da4-35a6-4069-9f3a-0ed12fc23706', 'name': 'ctest-vn-18475657', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'project_id': '534daf0df5e14e489dd19fb2c8deed1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2160e944-300b-46fe-8d67-ab79c86ab4e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-vn-18475657'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-policy-allow-all-40292880']], 'subnet_ipam': [{'subnet_cidr': '194.34.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:44:13,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97f085ef-f903-42f0-94bb-db667fa4ecdc', 'name': 'ctest-vn-60409578', 'tenant_id': '534daf0df5e14e489dd19fb2c8deed1b', 'project_id': '534daf0df5e14e489dd19fb2c8deed1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95ce09ca-d1bc-4cd3-bbb9-8a53b13ddc7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-vn-60409578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-policy-allow-all-40292880']], 'subnet_ipam': [{'subnet_cidr': '208.209.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:44:13,866 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-11 15:44:14,156 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-11 15:44:14,182 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783
2025-08-11 15:44:14,194 - DEBUG - Requesting: http://10.0.0.41:8082/project/534daf0d-f5e1-4e48-9dd1-9fb2c8deed1b
2025-08-11 15:44:14,266 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,277 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,288 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/34403401-63d8-4a5b-9cbf-a0d2173ff326
2025-08-11 15:44:14,295 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/34403401-63d8-4a5b-9cbf-a0d2173ff326
2025-08-11 15:44:14,303 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b9841780-2481-4df8-9eee-e58f70d4db38
2025-08-11 15:44:14,310 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:44:14,310 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,318 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/34403401-63d8-4a5b-9cbf-a0d2173ff326
2025-08-11 15:44:14,333 - INFO - Verified VN network id 11 for VN ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,334 - INFO - Verifications in API Server for VN ctest-vn-18475657 passed
2025-08-11 15:44:14,334 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,343 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/34403401-63d8-4a5b-9cbf-a0d2173ff326
2025-08-11 15:44:14,349 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/34403401-63d8-4a5b-9cbf-a0d2173ff326
2025-08-11 15:44:14,355 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b9841780-2481-4df8-9eee-e58f70d4db38
2025-08-11 15:44:14,367 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14572775', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12530506905898336361', 'uuid-lslong': '11473499292291970822'}, 'enable': 'true', 'created': '2025-08-11T15:44:12', 'last-modified': '2025-08-11T15:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902453'}
2025-08-11 15:44:14,373 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:44:14,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18475657 passed
2025-08-11 15:44:14,374 - DEBUG - ====Verifying policy data for ctest-vn-18475657 in API_Server ======
2025-08-11 15:44:14,374 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-11 15:44:14,379 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783
2025-08-11 15:44:14,389 - DEBUG - Requesting: http://10.0.0.41:8082/project/534daf0d-f5e1-4e48-9dd1-9fb2c8deed1b
2025-08-11 15:44:14,465 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ade54da4-35a6-4069-9f3a-0ed12fc23706
2025-08-11 15:44:14,475 - DEBUG - ==>Verifying data for policy with id: 7ef35a46-3662-4dd1-a54b-50ada8e3b4ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-policy-allow-all-40292880']
2025-08-11 15:44:14,475 - INFO - VN ctest-vn-18475657 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:44:14,475 - DEBUG - Verifying the vn in opserver
2025-08-11 15:44:14,475 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657 virtual network link through opserver 10.0.0.41
2025-08-11 15:44:14,475 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-11 15:44:14,764 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-11 15:44:14,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657?flat'}
2025-08-11 15:44:14,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-18475657 is found in opserver
2025-08-11 15:44:14,823 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:44:14,827 - DEBUG - VRF ids for VN ctest-vn-18475657: {}
2025-08-11 15:44:14,827 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-11 15:44:14,832 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783
2025-08-11 15:44:14,842 - DEBUG - Requesting: http://10.0.0.41:8082/project/534daf0d-f5e1-4e48-9dd1-9fb2c8deed1b
2025-08-11 15:44:14,915 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:14,926 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:14,934 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/30fe9359-1a0a-4eda-8d46-1247282f46e6
2025-08-11 15:44:14,941 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/30fe9359-1a0a-4eda-8d46-1247282f46e6
2025-08-11 15:44:14,947 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5f2c7456-1e1d-4f1e-a901-c210fcf3da18
2025-08-11 15:44:14,952 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:44:14,952 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:14,966 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/30fe9359-1a0a-4eda-8d46-1247282f46e6
2025-08-11 15:44:14,979 - INFO - Verified VN network id 12 for VN 97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:14,979 - INFO - Verifications in API Server for VN ctest-vn-60409578 passed
2025-08-11 15:44:14,979 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:14,988 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/30fe9359-1a0a-4eda-8d46-1247282f46e6
2025-08-11 15:44:14,994 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/30fe9359-1a0a-4eda-8d46-1247282f46e6
2025-08-11 15:44:15,001 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5f2c7456-1e1d-4f1e-a901-c210fcf3da18
2025-08-11 15:44:15,014 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-60409578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14572775', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10948397959859094256', 'uuid-lslong': '10717400971532889308'}, 'enable': 'true', 'created': '2025-08-11T15:44:12', 'last-modified': '2025-08-11T15:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328720'}
2025-08-11 15:44:15,019 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:44:15,020 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60409578 passed
2025-08-11 15:44:15,020 - DEBUG - ====Verifying policy data for ctest-vn-60409578 in API_Server ======
2025-08-11 15:44:15,020 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-11 15:44:15,025 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783
2025-08-11 15:44:15,036 - DEBUG - Requesting: http://10.0.0.41:8082/project/534daf0d-f5e1-4e48-9dd1-9fb2c8deed1b
2025-08-11 15:44:15,104 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/97f085ef-f903-42f0-94bb-db667fa4ecdc
2025-08-11 15:44:15,113 - DEBUG - ==>Verifying data for policy with id: 7ef35a46-3662-4dd1-a54b-50ada8e3b4ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-14572775', 'ctest-policy-allow-all-40292880']
2025-08-11 15:44:15,113 - INFO - VN ctest-vn-60409578 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:44:15,113 - DEBUG - Verifying the vn in opserver
2025-08-11 15:44:15,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-60409578 virtual network link through opserver 10.0.0.41
2025-08-11 15:44:15,113 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-11 15:44:15,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-60409578', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-60409578?flat'}
2025-08-11 15:44:15,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14572775:ctest-vn-60409578 is found in opserver
2025-08-11 15:44:15,133 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:44:15,138 - DEBUG - VRF ids for VN ctest-vn-60409578: {}
2025-08-11 15:44:15,186 - DEBUG - Services list from nova: [