2025-04-11 11:37:38,298 - INFO - Domain Default found not creating
2025-04-11 11:37:38,473 - INFO - Project ctest-TestBasicPolicy-53487322 not found, creating it
2025-04-11 11:37:38,964 - INFO - Created Project:ctest-TestBasicPolicy-53487322, ID : 7de4afd1-1cc3-4b34-8389-ec284e15f3d0
2025-04-11 11:37:40,472 - INFO - ================================================================================
2025-04-11 11:37:40,472 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-11 11:37:40,472 - 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-11 11:37:40,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-11 11:37:40,729 - INFO - Initial checks done. Running the testcase now
2025-04-11 11:37:40,729 - INFO -
2025-04-11 11:37:41,294 - DEBUG - Response for create_network : {'network': {'id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'name': 'ctest-vn-74179216', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-74179216'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 11:37:41,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '4859e60b-341b-416e-8558-cf8ca7008501', 'name': '', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'network_id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'ip_version': 4, 'cidr': '189.112.64.128/26', 'allocation_pools': [{'start': '189.112.64.130', 'end': '189.112.64.190'}], 'gateway_ip': '189.112.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.112.64.130', 'tags': [], 'project_id': '7de4afd11cc34b348389ec284e15f3d0'}}
2025-04-11 11:37:41,484 - INFO - Created VN ctest-vn-74179216
2025-04-11 11:37:41,538 - DEBUG - VN ctest-vn-74179216 UUID is 74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:41,857 - DEBUG - Response for create_network : {'network': {'id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'name': 'ctest-vn-09855234', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-09855234'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 11:37:42,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e3ff281-da57-463d-a3c5-e864ea2fb2c0', 'name': '', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'network_id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'ip_version': 4, 'cidr': '7.170.222.64/26', 'allocation_pools': [{'start': '7.170.222.66', 'end': '7.170.222.126'}], 'gateway_ip': '7.170.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.170.222.66', 'tags': [], 'project_id': '7de4afd11cc34b348389ec284e15f3d0'}}
2025-04-11 11:37:42,091 - INFO - Created VN ctest-vn-09855234
2025-04-11 11:37:42,146 - DEBUG - VN ctest-vn-09855234 UUID is 54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:42,262 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216, 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-53487322:ctest-vn-09855234, 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-11 11:37:42,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'name': 'ctest-vn-74179216', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4859e60b-341b-416e-8558-cf8ca7008501'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-74179216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']], 'subnet_ipam': [{'subnet_cidr': '189.112.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 11:37:42,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'name': 'ctest-vn-09855234', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e3ff281-da57-463d-a3c5-e864ea2fb2c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-09855234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']], 'subnet_ipam': [{'subnet_cidr': '7.170.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 11:37:43,030 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 11:37:43,328 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 11:37:43,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886
2025-04-11 11:37:43,378 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0
2025-04-11 11:37:43,473 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0
2025-04-11 11:37:43,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0
2025-04-11 11:37:43,523 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b8139b5-14d7-439c-bfdf-2a8214ddce88
2025-04-11 11:37:43,533 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 11:37:43,533 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0
2025-04-11 11:37:43,566 - INFO - Verified VN network id 8 for VN 74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,566 - INFO - Verifications in API Server for VN ctest-vn-74179216 passed
2025-04-11 11:37:43,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0
2025-04-11 11:37:43,586 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0
2025-04-11 11:37:43,594 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b8139b5-14d7-439c-bfdf-2a8214ddce88
2025-04-11 11:37:43,608 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53487322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8406432585850572021', 'uuid-lslong': '11929180001517543567'}, 'enable': 'true', 'created': '2025-04-11T11:37:41', 'last-modified': '2025-04-11T11:37:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055032'}
2025-04-11 11:37:43,616 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 11:37:43,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74179216 passed
2025-04-11 11:37:43,617 - DEBUG - ====Verifying policy data for ctest-vn-74179216 in API_Server ======
2025-04-11 11:37:43,617 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 11:37:43,623 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886
2025-04-11 11:37:43,637 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0
2025-04-11 11:37:43,719 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f
2025-04-11 11:37:43,730 - DEBUG - ==>Verifying data for policy with id: 421f8283-d079-405c-95aa-6384fb61c3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']
2025-04-11 11:37:43,730 - INFO - VN ctest-vn-74179216 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 11:37:43,730 - DEBUG - Verifying the vn in opserver
2025-04-11 11:37:43,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216 virtual network link through opserver 10.0.0.254
2025-04-11 11:37:43,731 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 11:37:44,038 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 11:37:44,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216?flat'}
2025-04-11 11:37:44,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216 is found in opserver
2025-04-11 11:37:44,109 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 11:37:44,115 - DEBUG - VRF ids for VN ctest-vn-74179216: {}
2025-04-11 11:37:44,115 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 11:37:44,121 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886
2025-04-11 11:37:44,135 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0
2025-04-11 11:37:44,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,227 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,241 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1
2025-04-11 11:37:44,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1
2025-04-11 11:37:44,261 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/969709b3-7622-4fe5-a6f3-418342f78766
2025-04-11 11:37:44,272 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 11:37:44,272 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,286 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1
2025-04-11 11:37:44,305 - INFO - Verified VN network id 9 for VN 54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,306 - INFO - Verifications in API Server for VN ctest-vn-09855234 passed
2025-04-11 11:37:44,306 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,317 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1
2025-04-11 11:37:44,326 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1
2025-04-11 11:37:44,334 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/969709b3-7622-4fe5-a6f3-418342f78766
2025-04-11 11:37:44,348 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53487322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6089436383826168692', 'uuid-lslong': '11991624305842370909'}, 'enable': 'true', 'created': '2025-04-11T11:37:41', 'last-modified': '2025-04-11T11:37:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531490'}
2025-04-11 11:37:44,355 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 11:37:44,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09855234 passed
2025-04-11 11:37:44,356 - DEBUG - ====Verifying policy data for ctest-vn-09855234 in API_Server ======
2025-04-11 11:37:44,356 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 11:37:44,363 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886
2025-04-11 11:37:44,379 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0
2025-04-11 11:37:44,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d
2025-04-11 11:37:44,476 - DEBUG - ==>Verifying data for policy with id: 421f8283-d079-405c-95aa-6384fb61c3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']
2025-04-11 11:37:44,476 - INFO - VN ctest-vn-09855234 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 11:37:44,476 - DEBUG - Verifying the vn in opserver
2025-04-11 11:37:44,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234 virtual network link through opserver 10.0.0.254
2025-04-11 11:37:44,476 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 11:37:44,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234?flat'}
2025-04-11 11:37:44,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234 is found in opserver
2025-04-11 11:37:44,503 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 11:37:44,509 - DEBUG - VRF ids for VN ctest-vn-09855234: {}
2025-04-11 11:37:44,604 - DEBUG - Services list from nova: [