2025-02-10 12:16:28,708 - INFO - Domain Default found not creating
2025-02-10 12:16:28,930 - INFO - Project ctest-TestBasicPolicy-73386921 not found, creating it
2025-02-10 12:16:29,375 - INFO - Created Project:ctest-TestBasicPolicy-73386921, ID : 31a4e659-59d7-4701-b8a8-33e871f2b493
2025-02-10 12:16:30,748 - INFO - ================================================================================
2025-02-10 12:16:30,748 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 12:16:30,748 - 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-02-10 12:16:31,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.6': '0'}} with
2025-02-10 12:16:31,003 - INFO - Initial checks done. Running the testcase now
2025-02-10 12:16:31,003 - INFO -
2025-02-10 12:16:31,530 - DEBUG - Response for create_network : {'network': {'id': '16a51bc0-a90f-4a8e-8974-1a6c4e3635f2', 'name': 'ctest-vn-15604851', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'project_id': '31a4e65959d74701b8a833e871f2b493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-vn-15604851'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 12:16:31,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '0dc91a10-6e72-4e31-b1cf-175ed0c7f947', 'name': '', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'network_id': '16a51bc0-a90f-4a8e-8974-1a6c4e3635f2', 'ip_version': 4, 'cidr': '163.15.49.0/26', 'allocation_pools': [{'start': '163.15.49.2', 'end': '163.15.49.62'}], 'gateway_ip': '163.15.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.15.49.2', 'tags': [], 'project_id': '31a4e65959d74701b8a833e871f2b493'}}
2025-02-10 12:16:31,733 - INFO - Created VN ctest-vn-15604851
2025-02-10 12:16:31,785 - DEBUG - VN ctest-vn-15604851 UUID is 16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:32,100 - DEBUG - Response for create_network : {'network': {'id': '1a1220fe-eda3-47f8-bcc7-e64712bd788c', 'name': 'ctest-vn-92678701', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'project_id': '31a4e65959d74701b8a833e871f2b493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-vn-92678701'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 12:16:32,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bef1805-bf34-4c17-87dd-23f213420655', 'name': '', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'network_id': '1a1220fe-eda3-47f8-bcc7-e64712bd788c', 'ip_version': 4, 'cidr': '37.212.115.0/26', 'allocation_pools': [{'start': '37.212.115.2', 'end': '37.212.115.62'}], 'gateway_ip': '37.212.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.212.115.2', 'tags': [], 'project_id': '31a4e65959d74701b8a833e871f2b493'}}
2025-02-10 12:16:32,327 - INFO - Created VN ctest-vn-92678701
2025-02-10 12:16:32,377 - DEBUG - VN ctest-vn-92678701 UUID is 1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:32,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851, 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-73386921:ctest-vn-92678701, 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-02-10 12:16:32,820 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16a51bc0-a90f-4a8e-8974-1a6c4e3635f2', 'name': 'ctest-vn-15604851', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'project_id': '31a4e65959d74701b8a833e871f2b493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0dc91a10-6e72-4e31-b1cf-175ed0c7f947'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-vn-15604851'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-policy-allow-all-87115764']], 'subnet_ipam': [{'subnet_cidr': '163.15.49.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 12:16:33,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a1220fe-eda3-47f8-bcc7-e64712bd788c', 'name': 'ctest-vn-92678701', 'tenant_id': '31a4e65959d74701b8a833e871f2b493', 'project_id': '31a4e65959d74701b8a833e871f2b493', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bef1805-bf34-4c17-87dd-23f213420655'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-vn-92678701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-policy-allow-all-87115764']], 'subnet_ipam': [{'subnet_cidr': '37.212.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 12:16:33,221 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 12:16:33,518 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 12:16:33,544 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f832c244-4dd8-406d-a3af-97e9812ad834
2025-02-10 12:16:33,558 - DEBUG - Requesting: http://10.0.0.41:8082/project/31a4e659-59d7-4701-b8a8-33e871f2b493
2025-02-10 12:16:33,629 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,640 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,649 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b05e3650-62d6-4015-99a2-b021a338b4b3
2025-02-10 12:16:33,656 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b05e3650-62d6-4015-99a2-b021a338b4b3
2025-02-10 12:16:33,662 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b4a61bd1-d72c-4f4c-925b-4cf6b2458158
2025-02-10 12:16:33,668 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 12:16:33,669 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,677 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b05e3650-62d6-4015-99a2-b021a338b4b3
2025-02-10 12:16:33,690 - INFO - Verified VN network id 9 for VN 16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,690 - INFO - Verifications in API Server for VN ctest-vn-15604851 passed
2025-02-10 12:16:33,690 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,700 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b05e3650-62d6-4015-99a2-b021a338b4b3
2025-02-10 12:16:33,707 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b05e3650-62d6-4015-99a2-b021a338b4b3
2025-02-10 12:16:33,714 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b4a61bd1-d72c-4f4c-925b-4cf6b2458158
2025-02-10 12:16:33,725 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73386921', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1631740954275695246', 'uuid-lslong': '9904570532965529074'}, 'enable': 'true', 'created': '2025-02-10T12:16:31', 'last-modified': '2025-02-10T12:16:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930401'}
2025-02-10 12:16:33,731 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 12:16:33,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15604851 passed
2025-02-10 12:16:33,732 - DEBUG - ====Verifying policy data for ctest-vn-15604851 in API_Server ======
2025-02-10 12:16:33,732 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 12:16:33,737 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f832c244-4dd8-406d-a3af-97e9812ad834
2025-02-10 12:16:33,747 - DEBUG - Requesting: http://10.0.0.41:8082/project/31a4e659-59d7-4701-b8a8-33e871f2b493
2025-02-10 12:16:33,819 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16a51bc0-a90f-4a8e-8974-1a6c4e3635f2
2025-02-10 12:16:33,830 - DEBUG - ==>Verifying data for policy with id: 0cfa9589-0960-4ade-a475-e16d1b0dd084, fqn: ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-policy-allow-all-87115764']
2025-02-10 12:16:33,830 - INFO - VN ctest-vn-15604851 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 12:16:33,830 - DEBUG - Verifying the vn in opserver
2025-02-10 12:16:33,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851 virtual network link through opserver 10.0.0.41
2025-02-10 12:16:33,830 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 12:16:34,126 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 12:16:34,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851?flat'}
2025-02-10 12:16:34,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-15604851 is found in opserver
2025-02-10 12:16:34,194 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 12:16:34,199 - DEBUG - VRF ids for VN ctest-vn-15604851: {}
2025-02-10 12:16:34,199 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 12:16:34,205 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f832c244-4dd8-406d-a3af-97e9812ad834
2025-02-10 12:16:34,217 - DEBUG - Requesting: http://10.0.0.41:8082/project/31a4e659-59d7-4701-b8a8-33e871f2b493
2025-02-10 12:16:34,289 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,301 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,310 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/04e6d4a4-eb73-44f0-b8f8-2698f53379c7
2025-02-10 12:16:34,317 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/04e6d4a4-eb73-44f0-b8f8-2698f53379c7
2025-02-10 12:16:34,324 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/42664d5c-28fe-468a-aa35-c5e3eb0cfb83
2025-02-10 12:16:34,330 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 12:16:34,330 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,339 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/04e6d4a4-eb73-44f0-b8f8-2698f53379c7
2025-02-10 12:16:34,352 - INFO - Verified VN network id 10 for VN 1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,352 - INFO - Verifications in API Server for VN ctest-vn-92678701 passed
2025-02-10 12:16:34,352 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,362 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/04e6d4a4-eb73-44f0-b8f8-2698f53379c7
2025-02-10 12:16:34,368 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/04e6d4a4-eb73-44f0-b8f8-2698f53379c7
2025-02-10 12:16:34,375 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/42664d5c-28fe-468a-aa35-c5e3eb0cfb83
2025-02-10 12:16:34,386 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-92678701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73386921', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1878600273847601144', 'uuid-lslong': '13603094392427346060'}, 'enable': 'true', 'created': '2025-02-10T12:16:32', 'last-modified': '2025-02-10T12:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357074'}
2025-02-10 12:16:34,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 12:16:34,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92678701 passed
2025-02-10 12:16:34,393 - DEBUG - ====Verifying policy data for ctest-vn-92678701 in API_Server ======
2025-02-10 12:16:34,393 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-02-10 12:16:34,398 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f832c244-4dd8-406d-a3af-97e9812ad834
2025-02-10 12:16:34,410 - DEBUG - Requesting: http://10.0.0.41:8082/project/31a4e659-59d7-4701-b8a8-33e871f2b493
2025-02-10 12:16:34,486 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1a1220fe-eda3-47f8-bcc7-e64712bd788c
2025-02-10 12:16:34,503 - DEBUG - ==>Verifying data for policy with id: 0cfa9589-0960-4ade-a475-e16d1b0dd084, fqn: ['default-domain', 'ctest-TestBasicPolicy-73386921', 'ctest-policy-allow-all-87115764']
2025-02-10 12:16:34,503 - INFO - VN ctest-vn-92678701 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 12:16:34,503 - DEBUG - Verifying the vn in opserver
2025-02-10 12:16:34,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-92678701 virtual network link through opserver 10.0.0.41
2025-02-10 12:16:34,503 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-02-10 12:16:34,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-92678701', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-92678701?flat'}
2025-02-10 12:16:34,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73386921:ctest-vn-92678701 is found in opserver
2025-02-10 12:16:34,525 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 12:16:34,530 - DEBUG - VRF ids for VN ctest-vn-92678701: {}
2025-02-10 12:16:34,586 - DEBUG - Services list from nova: [