2025-03-27 13:41:55,332 - INFO - Domain Default found not creating
2025-03-27 13:41:55,476 - INFO - Project ctest-TestBasicPolicy-64360103 not found, creating it
2025-03-27 13:41:55,942 - INFO - Created Project:ctest-TestBasicPolicy-64360103, ID : 8a8be680-89b2-4f04-94ad-01d5f50b39af
2025-03-27 13:41:57,405 - INFO - ================================================================================
2025-03-27 13:41:57,405 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 13:41:57,405 - 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-27 13:41:57,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with
2025-03-27 13:41:57,663 - INFO - Initial checks done. Running the testcase now
2025-03-27 13:41:57,663 - INFO -
2025-03-27 13:41:58,210 - DEBUG - Response for create_network : {'network': {'id': '2ef798f6-28b3-4fe6-803c-4becec0bbbf3', 'name': 'ctest-vn-11771589', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'project_id': '8a8be68089b24f0494ad01d5f50b39af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-vn-11771589'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:41:58,435 - DEBUG - Response for create_subnet : {'subnet': {'id': '3efe2f98-d4d5-4010-a2d4-a096740a1797', 'name': '', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'network_id': '2ef798f6-28b3-4fe6-803c-4becec0bbbf3', 'ip_version': 4, 'cidr': '12.123.152.192/26', 'allocation_pools': [{'start': '12.123.152.194', 'end': '12.123.152.254'}], 'gateway_ip': '12.123.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.123.152.194', 'tags': [], 'project_id': '8a8be68089b24f0494ad01d5f50b39af'}}
2025-03-27 13:41:58,454 - INFO - Created VN ctest-vn-11771589
2025-03-27 13:41:58,507 - DEBUG - VN ctest-vn-11771589 UUID is 2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:41:58,805 - DEBUG - Response for create_network : {'network': {'id': '334836c2-75c2-4ee0-851a-a62db2aa9a46', 'name': 'ctest-vn-88944320', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'project_id': '8a8be68089b24f0494ad01d5f50b39af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-vn-88944320'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:41:59,029 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5aa7258-a460-4fb1-a3db-d3b53d002914', 'name': '', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'network_id': '334836c2-75c2-4ee0-851a-a62db2aa9a46', 'ip_version': 4, 'cidr': '81.8.96.128/26', 'allocation_pools': [{'start': '81.8.96.130', 'end': '81.8.96.190'}], 'gateway_ip': '81.8.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.8.96.130', 'tags': [], 'project_id': '8a8be68089b24f0494ad01d5f50b39af'}}
2025-03-27 13:41:59,050 - INFO - Created VN ctest-vn-88944320
2025-03-27 13:41:59,103 - DEBUG - VN ctest-vn-88944320 UUID is 334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:41:59,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589, 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-64360103:ctest-vn-88944320, 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-27 13:41:59,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ef798f6-28b3-4fe6-803c-4becec0bbbf3', 'name': 'ctest-vn-11771589', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'project_id': '8a8be68089b24f0494ad01d5f50b39af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3efe2f98-d4d5-4010-a2d4-a096740a1797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-vn-11771589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-policy-allow-all-87736256']], 'subnet_ipam': [{'subnet_cidr': '12.123.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:41:59,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334836c2-75c2-4ee0-851a-a62db2aa9a46', 'name': 'ctest-vn-88944320', 'tenant_id': '8a8be68089b24f0494ad01d5f50b39af', 'project_id': '8a8be68089b24f0494ad01d5f50b39af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5aa7258-a460-4fb1-a3db-d3b53d002914'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-vn-88944320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-policy-allow-all-87736256']], 'subnet_ipam': [{'subnet_cidr': '81.8.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:41:59,927 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 13:42:00,220 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 13:42:00,250 - DEBUG - Requesting: http://10.0.0.28:8082/domain/22fdbb07-328f-4bc4-b2d3-9d039227212e
2025-03-27 13:42:00,263 - DEBUG - Requesting: http://10.0.0.28:8082/project/8a8be680-89b2-4f04-94ad-01d5f50b39af
2025-03-27 13:42:00,337 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,350 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,361 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cf24072a-d41d-4e86-90f1-ba60a88f33d1
2025-03-27 13:42:00,369 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cf24072a-d41d-4e86-90f1-ba60a88f33d1
2025-03-27 13:42:00,379 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c60703d8-eb2b-4f67-b901-743247cc90a0
2025-03-27 13:42:00,390 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:42:00,390 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,405 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cf24072a-d41d-4e86-90f1-ba60a88f33d1
2025-03-27 13:42:00,423 - INFO - Verified VN network id 8 for VN 2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,423 - INFO - Verifications in API Server for VN ctest-vn-11771589 passed
2025-03-27 13:42:00,424 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,437 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cf24072a-d41d-4e86-90f1-ba60a88f33d1
2025-03-27 13:42:00,445 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cf24072a-d41d-4e86-90f1-ba60a88f33d1
2025-03-27 13:42:00,454 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c60703d8-eb2b-4f67-b901-743247cc90a0
2025-03-27 13:42:00,468 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64360103', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3384341828004433894', 'uuid-lslong': '9240344016401972211'}, 'enable': 'true', 'created': '2025-03-27T13:41:58', 'last-modified': '2025-03-27T13:41:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966633'}
2025-03-27 13:42:00,475 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:42:00,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11771589 passed
2025-03-27 13:42:00,475 - DEBUG - ====Verifying policy data for ctest-vn-11771589 in API_Server ======
2025-03-27 13:42:00,475 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 13:42:00,481 - DEBUG - Requesting: http://10.0.0.28:8082/domain/22fdbb07-328f-4bc4-b2d3-9d039227212e
2025-03-27 13:42:00,496 - DEBUG - Requesting: http://10.0.0.28:8082/project/8a8be680-89b2-4f04-94ad-01d5f50b39af
2025-03-27 13:42:00,577 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ef798f6-28b3-4fe6-803c-4becec0bbbf3
2025-03-27 13:42:00,591 - DEBUG - ==>Verifying data for policy with id: 4ad36e96-a424-4682-9932-d8d0ff3c0ce2, fqn: ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-policy-allow-all-87736256']
2025-03-27 13:42:00,591 - INFO - VN ctest-vn-11771589 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:42:00,591 - DEBUG - Verifying the vn in opserver
2025-03-27 13:42:00,591 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589 virtual network link through opserver 10.0.0.28
2025-03-27 13:42:00,591 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 13:42:00,885 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 13:42:00,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589?flat'}
2025-03-27 13:42:00,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-11771589 is found in opserver
2025-03-27 13:42:00,955 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:42:00,962 - DEBUG - VRF ids for VN ctest-vn-11771589: {}
2025-03-27 13:42:00,963 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 13:42:00,969 - DEBUG - Requesting: http://10.0.0.28:8082/domain/22fdbb07-328f-4bc4-b2d3-9d039227212e
2025-03-27 13:42:00,981 - DEBUG - Requesting: http://10.0.0.28:8082/project/8a8be680-89b2-4f04-94ad-01d5f50b39af
2025-03-27 13:42:01,064 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,077 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,087 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fda6d5d6-1b66-470b-aca5-cec6a32b4673
2025-03-27 13:42:01,096 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fda6d5d6-1b66-470b-aca5-cec6a32b4673
2025-03-27 13:42:01,103 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c337c3e9-b97e-4e62-bbbe-41ac6de407a6
2025-03-27 13:42:01,114 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:42:01,114 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,124 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fda6d5d6-1b66-470b-aca5-cec6a32b4673
2025-03-27 13:42:01,140 - INFO - Verified VN network id 9 for VN 334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,141 - INFO - Verifications in API Server for VN ctest-vn-88944320 passed
2025-03-27 13:42:01,141 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,154 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fda6d5d6-1b66-470b-aca5-cec6a32b4673
2025-03-27 13:42:01,163 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fda6d5d6-1b66-470b-aca5-cec6a32b4673
2025-03-27 13:42:01,170 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c337c3e9-b97e-4e62-bbbe-41ac6de407a6
2025-03-27 13:42:01,186 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-88944320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64360103', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3695263703084715744', 'uuid-lslong': '9591161071640156742'}, 'enable': 'true', 'created': '2025-03-27T13:41:58', 'last-modified': '2025-03-27T13:41:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437049'}
2025-03-27 13:42:01,195 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:42:01,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88944320 passed
2025-03-27 13:42:01,195 - DEBUG - ====Verifying policy data for ctest-vn-88944320 in API_Server ======
2025-03-27 13:42:01,195 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-27 13:42:01,201 - DEBUG - Requesting: http://10.0.0.28:8082/domain/22fdbb07-328f-4bc4-b2d3-9d039227212e
2025-03-27 13:42:01,214 - DEBUG - Requesting: http://10.0.0.28:8082/project/8a8be680-89b2-4f04-94ad-01d5f50b39af
2025-03-27 13:42:01,291 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/334836c2-75c2-4ee0-851a-a62db2aa9a46
2025-03-27 13:42:01,302 - DEBUG - ==>Verifying data for policy with id: 4ad36e96-a424-4682-9932-d8d0ff3c0ce2, fqn: ['default-domain', 'ctest-TestBasicPolicy-64360103', 'ctest-policy-allow-all-87736256']
2025-03-27 13:42:01,302 - INFO - VN ctest-vn-88944320 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:42:01,302 - DEBUG - Verifying the vn in opserver
2025-03-27 13:42:01,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-88944320 virtual network link through opserver 10.0.0.28
2025-03-27 13:42:01,302 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-27 13:42:01,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-88944320', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-88944320?flat'}
2025-03-27 13:42:01,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64360103:ctest-vn-88944320 is found in opserver
2025-03-27 13:42:01,326 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:42:01,331 - DEBUG - VRF ids for VN ctest-vn-88944320: {}
2025-03-27 13:42:01,394 - DEBUG - Services list from nova: [