2025-04-07 09:39:31,217 - INFO - Domain Default found not creating
2025-04-07 09:39:31,430 - INFO - Project ctest-TestBasicPolicy-00372024 not found, creating it
2025-04-07 09:39:31,900 - INFO - Created Project:ctest-TestBasicPolicy-00372024, ID : 1f640f7e-0c8d-40e8-9312-4459994ac005
2025-04-07 09:39:33,411 - INFO - ================================================================================
2025-04-07 09:39:33,411 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 09:39:33,411 - 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-04-07 09:39:33,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.6': '0'}} with
2025-04-07 09:39:33,667 - INFO - Initial checks done. Running the testcase now
2025-04-07 09:39:33,667 - INFO -
2025-04-07 09:39:34,245 - DEBUG - Response for create_network : {'network': {'id': '829c01ce-0c64-4a34-9e7f-3ea5c64685e5', 'name': 'ctest-vn-74694709', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'project_id': '1f640f7e0c8d40e893124459994ac005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-vn-74694709'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:34,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '80cc5001-8725-42eb-ab3b-23eca73e42c0', 'name': '', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'network_id': '829c01ce-0c64-4a34-9e7f-3ea5c64685e5', 'ip_version': 4, 'cidr': '73.144.111.64/26', 'allocation_pools': [{'start': '73.144.111.66', 'end': '73.144.111.126'}], 'gateway_ip': '73.144.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.144.111.66', 'tags': [], 'project_id': '1f640f7e0c8d40e893124459994ac005'}}
2025-04-07 09:39:34,451 - INFO - Created VN ctest-vn-74694709
2025-04-07 09:39:34,505 - DEBUG - VN ctest-vn-74694709 UUID is 829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:34,803 - DEBUG - Response for create_network : {'network': {'id': '45530015-d904-4222-992d-bbf1a39faee9', 'name': 'ctest-vn-90596203', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'project_id': '1f640f7e0c8d40e893124459994ac005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-vn-90596203'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:34,961 - DEBUG - Response for create_subnet : {'subnet': {'id': '80de5080-4a1b-4985-91e9-1ca6fc75f865', 'name': '', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'network_id': '45530015-d904-4222-992d-bbf1a39faee9', 'ip_version': 4, 'cidr': '106.184.15.128/26', 'allocation_pools': [{'start': '106.184.15.130', 'end': '106.184.15.190'}], 'gateway_ip': '106.184.15.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.184.15.130', 'tags': [], 'project_id': '1f640f7e0c8d40e893124459994ac005'}}
2025-04-07 09:39:34,980 - INFO - Created VN ctest-vn-90596203
2025-04-07 09:39:35,033 - DEBUG - VN ctest-vn-90596203 UUID is 45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:35,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709, 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-00372024:ctest-vn-90596203, 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-04-07 09:39:35,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '829c01ce-0c64-4a34-9e7f-3ea5c64685e5', 'name': 'ctest-vn-74694709', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'project_id': '1f640f7e0c8d40e893124459994ac005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80cc5001-8725-42eb-ab3b-23eca73e42c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-vn-74694709'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-policy-allow-all-01597898']], 'subnet_ipam': [{'subnet_cidr': '73.144.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:35,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45530015-d904-4222-992d-bbf1a39faee9', 'name': 'ctest-vn-90596203', 'tenant_id': '1f640f7e0c8d40e893124459994ac005', 'project_id': '1f640f7e0c8d40e893124459994ac005', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80de5080-4a1b-4985-91e9-1ca6fc75f865'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-vn-90596203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-policy-allow-all-01597898']], 'subnet_ipam': [{'subnet_cidr': '106.184.15.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:35,857 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-07 09:39:36,157 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-07 09:39:36,188 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee93c6df-a63a-4996-9924-489640760187
2025-04-07 09:39:36,203 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f640f7e-0c8d-40e8-9312-4459994ac005
2025-04-07 09:39:36,286 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,298 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,313 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2bd289a3-59ec-4c5a-a7dd-8c5ef2c1b2b5
2025-04-07 09:39:36,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2bd289a3-59ec-4c5a-a7dd-8c5ef2c1b2b5
2025-04-07 09:39:36,333 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55784068-c744-4f16-87e5-3117c88cb7b1
2025-04-07 09:39:36,341 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:39:36,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2bd289a3-59ec-4c5a-a7dd-8c5ef2c1b2b5
2025-04-07 09:39:36,367 - INFO - Verified VN network id 8 for VN 829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,367 - INFO - Verifications in API Server for VN ctest-vn-74694709 passed
2025-04-07 09:39:36,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,378 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2bd289a3-59ec-4c5a-a7dd-8c5ef2c1b2b5
2025-04-07 09:39:36,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2bd289a3-59ec-4c5a-a7dd-8c5ef2c1b2b5
2025-04-07 09:39:36,395 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55784068-c744-4f16-87e5-3117c88cb7b1
2025-04-07 09:39:36,409 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00372024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9411399305780283956', 'uuid-lslong': '11420916061751903717'}, 'enable': 'true', 'created': '2025-04-07T09:39:34', 'last-modified': '2025-04-07T09:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968126'}
2025-04-07 09:39:36,417 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:39:36,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74694709 passed
2025-04-07 09:39:36,417 - DEBUG - ====Verifying policy data for ctest-vn-74694709 in API_Server ======
2025-04-07 09:39:36,417 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-07 09:39:36,424 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee93c6df-a63a-4996-9924-489640760187
2025-04-07 09:39:36,438 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f640f7e-0c8d-40e8-9312-4459994ac005
2025-04-07 09:39:36,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/829c01ce-0c64-4a34-9e7f-3ea5c64685e5
2025-04-07 09:39:36,532 - DEBUG - ==>Verifying data for policy with id: d6256372-f432-4917-bec2-1afb799f0764, fqn: ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-policy-allow-all-01597898']
2025-04-07 09:39:36,532 - INFO - VN ctest-vn-74694709 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:39:36,532 - DEBUG - Verifying the vn in opserver
2025-04-07 09:39:36,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709 virtual network link through opserver 10.0.0.38
2025-04-07 09:39:36,532 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-07 09:39:36,828 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-07 09:39:36,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709?flat'}
2025-04-07 09:39:36,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-74694709 is found in opserver
2025-04-07 09:39:36,904 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:39:36,910 - DEBUG - VRF ids for VN ctest-vn-74694709: {}
2025-04-07 09:39:36,910 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-07 09:39:36,917 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee93c6df-a63a-4996-9924-489640760187
2025-04-07 09:39:36,930 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f640f7e-0c8d-40e8-9312-4459994ac005
2025-04-07 09:39:37,009 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87e00d1d-4547-46a4-9b0d-04d5a23d5bc3
2025-04-07 09:39:37,043 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87e00d1d-4547-46a4-9b0d-04d5a23d5bc3
2025-04-07 09:39:37,053 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0f9e3ee-86cc-4f96-872d-988c884f2a2f
2025-04-07 09:39:37,062 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:39:37,062 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87e00d1d-4547-46a4-9b0d-04d5a23d5bc3
2025-04-07 09:39:37,094 - INFO - Verified VN network id 9 for VN 45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,094 - INFO - Verifications in API Server for VN ctest-vn-90596203 passed
2025-04-07 09:39:37,094 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87e00d1d-4547-46a4-9b0d-04d5a23d5bc3
2025-04-07 09:39:37,114 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87e00d1d-4547-46a4-9b0d-04d5a23d5bc3
2025-04-07 09:39:37,123 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0f9e3ee-86cc-4f96-872d-988c884f2a2f
2025-04-07 09:39:37,137 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-90596203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00372024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4995336505519260194', 'uuid-lslong': '11037684908261617385'}, 'enable': 'true', 'created': '2025-04-07T09:39:34', 'last-modified': '2025-04-07T09:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487190'}
2025-04-07 09:39:37,144 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:39:37,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90596203 passed
2025-04-07 09:39:37,144 - DEBUG - ====Verifying policy data for ctest-vn-90596203 in API_Server ======
2025-04-07 09:39:37,144 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-07 09:39:37,150 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee93c6df-a63a-4996-9924-489640760187
2025-04-07 09:39:37,165 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f640f7e-0c8d-40e8-9312-4459994ac005
2025-04-07 09:39:37,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45530015-d904-4222-992d-bbf1a39faee9
2025-04-07 09:39:37,255 - DEBUG - ==>Verifying data for policy with id: d6256372-f432-4917-bec2-1afb799f0764, fqn: ['default-domain', 'ctest-TestBasicPolicy-00372024', 'ctest-policy-allow-all-01597898']
2025-04-07 09:39:37,255 - INFO - VN ctest-vn-90596203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:39:37,255 - DEBUG - Verifying the vn in opserver
2025-04-07 09:39:37,255 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-90596203 virtual network link through opserver 10.0.0.38
2025-04-07 09:39:37,255 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-07 09:39:37,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-90596203', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-90596203?flat'}
2025-04-07 09:39:37,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00372024:ctest-vn-90596203 is found in opserver
2025-04-07 09:39:37,279 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:39:37,285 - DEBUG - VRF ids for VN ctest-vn-90596203: {}
2025-04-07 09:39:37,347 - DEBUG - Services list from nova: [