2025-03-26 22:58:39,217 - INFO - Domain Default found not creating
2025-03-26 22:58:39,373 - INFO - Project ctest-TestBasicPolicy-80584547 not found, creating it
2025-03-26 22:58:39,844 - INFO - Created Project:ctest-TestBasicPolicy-80584547, ID : 068ddf52-3c26-4cd2-9d49-bbf9a21bb560
2025-03-26 22:58:41,293 - INFO - ================================================================================
2025-03-26 22:58:41,293 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-26 22:58:41,293 - 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-03-26 22:58:41,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.18': '0'}} with
2025-03-26 22:58:41,548 - INFO - Initial checks done. Running the testcase now
2025-03-26 22:58:41,548 - INFO -
2025-03-26 22:58:42,101 - DEBUG - Response for create_network : {'network': {'id': '7e85c036-7c66-4121-aa9e-0fccaf5b6304', 'name': 'ctest-vn-98661665', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'project_id': '068ddf523c264cd29d49bbf9a21bb560', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-vn-98661665'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 22:58:42,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bb6b06e-20a4-4455-880a-7220daddefee', 'name': '', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'network_id': '7e85c036-7c66-4121-aa9e-0fccaf5b6304', 'ip_version': 4, 'cidr': '7.56.48.128/26', 'allocation_pools': [{'start': '7.56.48.130', 'end': '7.56.48.190'}], 'gateway_ip': '7.56.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.56.48.130', 'tags': [], 'project_id': '068ddf523c264cd29d49bbf9a21bb560'}}
2025-03-26 22:58:42,322 - INFO - Created VN ctest-vn-98661665
2025-03-26 22:58:42,374 - DEBUG - VN ctest-vn-98661665 UUID is 7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:42,688 - DEBUG - Response for create_network : {'network': {'id': '4840fdb1-a1cc-44f8-96de-5d92da13cb8e', 'name': 'ctest-vn-18669373', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'project_id': '068ddf523c264cd29d49bbf9a21bb560', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-vn-18669373'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 22:58:42,902 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db1c1c39-1b50-4ec9-8e26-2e8fe4aa93ab', 'name': '', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'network_id': '4840fdb1-a1cc-44f8-96de-5d92da13cb8e', 'ip_version': 4, 'cidr': '189.46.245.64/26', 'allocation_pools': [{'start': '189.46.245.66', 'end': '189.46.245.126'}], 'gateway_ip': '189.46.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.46.245.66', 'tags': [], 'project_id': '068ddf523c264cd29d49bbf9a21bb560'}}
2025-03-26 22:58:42,922 - INFO - Created VN ctest-vn-18669373
2025-03-26 22:58:42,974 - DEBUG - VN ctest-vn-18669373 UUID is 4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:43,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665, 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-80584547:ctest-vn-18669373, 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-03-26 22:58:43,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e85c036-7c66-4121-aa9e-0fccaf5b6304', 'name': 'ctest-vn-98661665', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'project_id': '068ddf523c264cd29d49bbf9a21bb560', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bb6b06e-20a4-4455-880a-7220daddefee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-vn-98661665'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-policy-allow-all-06946701']], 'subnet_ipam': [{'subnet_cidr': '7.56.48.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 22:58:43,628 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4840fdb1-a1cc-44f8-96de-5d92da13cb8e', 'name': 'ctest-vn-18669373', 'tenant_id': '068ddf523c264cd29d49bbf9a21bb560', 'project_id': '068ddf523c264cd29d49bbf9a21bb560', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db1c1c39-1b50-4ec9-8e26-2e8fe4aa93ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-vn-18669373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-policy-allow-all-06946701']], 'subnet_ipam': [{'subnet_cidr': '189.46.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 22:58:43,786 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-26 22:58:44,082 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-26 22:58:44,112 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9acd1c2f-c409-4ba8-a6b9-16e238118788
2025-03-26 22:58:44,127 - DEBUG - Requesting: http://10.0.0.37:8082/project/068ddf52-3c26-4cd2-9d49-bbf9a21bb560
2025-03-26 22:58:44,208 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,220 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,234 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/2a62b43e-67f6-4abc-810d-a833e2c11341
2025-03-26 22:58:44,244 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/2a62b43e-67f6-4abc-810d-a833e2c11341
2025-03-26 22:58:44,252 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/766e67bf-047b-4882-93b1-9e337b87e301
2025-03-26 22:58:44,261 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 22:58:44,261 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,274 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/2a62b43e-67f6-4abc-810d-a833e2c11341
2025-03-26 22:58:44,293 - INFO - Verified VN network id 8 for VN 7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,293 - INFO - Verifications in API Server for VN ctest-vn-98661665 passed
2025-03-26 22:58:44,293 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,306 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/2a62b43e-67f6-4abc-810d-a833e2c11341
2025-03-26 22:58:44,315 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/2a62b43e-67f6-4abc-810d-a833e2c11341
2025-03-26 22:58:44,322 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/766e67bf-047b-4882-93b1-9e337b87e301
2025-03-26 22:58:44,335 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80584547', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9116904360929280289', 'uuid-lslong': '12294281404557779716'}, 'enable': 'true', 'created': '2025-03-26T22:58:42', 'last-modified': '2025-03-26T22:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972344'}
2025-03-26 22:58:44,343 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 22:58:44,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98661665 passed
2025-03-26 22:58:44,343 - DEBUG - ====Verifying policy data for ctest-vn-98661665 in API_Server ======
2025-03-26 22:58:44,343 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-26 22:58:44,349 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9acd1c2f-c409-4ba8-a6b9-16e238118788
2025-03-26 22:58:44,361 - DEBUG - Requesting: http://10.0.0.37:8082/project/068ddf52-3c26-4cd2-9d49-bbf9a21bb560
2025-03-26 22:58:44,434 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7e85c036-7c66-4121-aa9e-0fccaf5b6304
2025-03-26 22:58:44,445 - DEBUG - ==>Verifying data for policy with id: 49d12e5b-ddea-4282-9484-38116fc4eb07, fqn: ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-policy-allow-all-06946701']
2025-03-26 22:58:44,445 - INFO - VN ctest-vn-98661665 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 22:58:44,445 - DEBUG - Verifying the vn in opserver
2025-03-26 22:58:44,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665 virtual network link through opserver 10.0.0.37
2025-03-26 22:58:44,446 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-26 22:58:44,737 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-26 22:58:44,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665?flat'}
2025-03-26 22:58:44,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-98661665 is found in opserver
2025-03-26 22:58:44,820 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 22:58:44,829 - DEBUG - VRF ids for VN ctest-vn-98661665: {}
2025-03-26 22:58:44,830 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-26 22:58:44,837 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9acd1c2f-c409-4ba8-a6b9-16e238118788
2025-03-26 22:58:44,850 - DEBUG - Requesting: http://10.0.0.37:8082/project/068ddf52-3c26-4cd2-9d49-bbf9a21bb560
2025-03-26 22:58:44,924 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:44,938 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:44,949 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/94f89701-fee0-4ce3-bb45-2c6ebba46539
2025-03-26 22:58:44,956 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/94f89701-fee0-4ce3-bb45-2c6ebba46539
2025-03-26 22:58:44,964 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3a687da8-366c-4c28-b634-30c0b1a3e103
2025-03-26 22:58:44,972 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 22:58:44,972 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:44,982 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/94f89701-fee0-4ce3-bb45-2c6ebba46539
2025-03-26 22:58:44,999 - INFO - Verified VN network id 9 for VN 4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:44,999 - INFO - Verifications in API Server for VN ctest-vn-18669373 passed
2025-03-26 22:58:44,999 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:45,012 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/94f89701-fee0-4ce3-bb45-2c6ebba46539
2025-03-26 22:58:45,021 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/94f89701-fee0-4ce3-bb45-2c6ebba46539
2025-03-26 22:58:45,029 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3a687da8-366c-4c28-b634-30c0b1a3e103
2025-03-26 22:58:45,043 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-18669373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80584547', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5206440108605850872', 'uuid-lslong': '10871229435824294798'}, 'enable': 'true', 'created': '2025-03-26T22:58:42', 'last-modified': '2025-03-26T22:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434728'}
2025-03-26 22:58:45,050 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 22:58:45,050 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18669373 passed
2025-03-26 22:58:45,051 - DEBUG - ====Verifying policy data for ctest-vn-18669373 in API_Server ======
2025-03-26 22:58:45,051 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-26 22:58:45,057 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9acd1c2f-c409-4ba8-a6b9-16e238118788
2025-03-26 22:58:45,069 - DEBUG - Requesting: http://10.0.0.37:8082/project/068ddf52-3c26-4cd2-9d49-bbf9a21bb560
2025-03-26 22:58:45,142 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/4840fdb1-a1cc-44f8-96de-5d92da13cb8e
2025-03-26 22:58:45,152 - DEBUG - ==>Verifying data for policy with id: 49d12e5b-ddea-4282-9484-38116fc4eb07, fqn: ['default-domain', 'ctest-TestBasicPolicy-80584547', 'ctest-policy-allow-all-06946701']
2025-03-26 22:58:45,152 - INFO - VN ctest-vn-18669373 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 22:58:45,152 - DEBUG - Verifying the vn in opserver
2025-03-26 22:58:45,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-18669373 virtual network link through opserver 10.0.0.37
2025-03-26 22:58:45,152 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-26 22:58:45,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-18669373', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-18669373?flat'}
2025-03-26 22:58:45,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80584547:ctest-vn-18669373 is found in opserver
2025-03-26 22:58:45,176 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 22:58:45,181 - DEBUG - VRF ids for VN ctest-vn-18669373: {}
2025-03-26 22:58:45,238 - DEBUG - Services list from nova: [