2025-04-03 02:23:31,187 - INFO - Domain Default found not creating
2025-04-03 02:23:31,360 - INFO - Project ctest-TestBasicPolicy-77861256 not found, creating it
2025-04-03 02:23:31,875 - INFO - Created Project:ctest-TestBasicPolicy-77861256, ID : ee399afe-bc6b-49fb-b09d-341e0416f521
2025-04-03 02:23:33,419 - INFO - ================================================================================
2025-04-03 02:23:33,420 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-03 02:23:33,420 - 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-03 02:23:33,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.8': '0'}} with
2025-04-03 02:23:33,681 - INFO - Initial checks done. Running the testcase now
2025-04-03 02:23:33,682 - INFO -
2025-04-03 02:23:34,292 - DEBUG - Response for create_network : {'network': {'id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'name': 'ctest-vn-61359073', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-61359073'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 02:23:34,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ca2f88b-fa22-4aeb-b23f-5c820acfd681', 'name': '', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'network_id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'ip_version': 4, 'cidr': '84.218.218.128/26', 'allocation_pools': [{'start': '84.218.218.130', 'end': '84.218.218.190'}], 'gateway_ip': '84.218.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.218.218.130', 'tags': [], 'project_id': 'ee399afebc6b49fbb09d341e0416f521'}}
2025-04-03 02:23:34,500 - INFO - Created VN ctest-vn-61359073
2025-04-03 02:23:34,558 - DEBUG - VN ctest-vn-61359073 UUID is 6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:34,890 - DEBUG - Response for create_network : {'network': {'id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'name': 'ctest-vn-65123235', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-65123235'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 02:23:35,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a6c412e-c586-4a2c-ac87-13e1025f531e', 'name': '', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'network_id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'ip_version': 4, 'cidr': '42.51.92.192/26', 'allocation_pools': [{'start': '42.51.92.194', 'end': '42.51.92.254'}], 'gateway_ip': '42.51.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.51.92.194', 'tags': [], 'project_id': 'ee399afebc6b49fbb09d341e0416f521'}}
2025-04-03 02:23:35,096 - INFO - Created VN ctest-vn-65123235
2025-04-03 02:23:35,154 - DEBUG - VN ctest-vn-65123235 UUID is 14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:35,287 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073, 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-77861256:ctest-vn-65123235, 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-03 02:23:35,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'name': 'ctest-vn-61359073', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ca2f88b-fa22-4aeb-b23f-5c820acfd681'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-61359073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']], 'subnet_ipam': [{'subnet_cidr': '84.218.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 02:23:35,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'name': 'ctest-vn-65123235', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a6c412e-c586-4a2c-ac87-13e1025f531e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-65123235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']], 'subnet_ipam': [{'subnet_cidr': '42.51.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 02:23:36,082 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-04-03 02:23:36,380 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-04-03 02:23:36,418 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c
2025-04-03 02:23:36,434 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521
2025-04-03 02:23:36,526 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,541 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,553 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93
2025-04-03 02:23:36,564 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93
2025-04-03 02:23:36,574 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/088600c8-6e9b-4390-b69d-e3020e6df093
2025-04-03 02:23:36,582 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 02:23:36,582 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,593 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93
2025-04-03 02:23:36,609 - INFO - Verified VN network id 8 for VN 6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,610 - INFO - Verifications in API Server for VN ctest-vn-61359073 passed
2025-04-03 02:23:36,610 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,623 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93
2025-04-03 02:23:36,632 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93
2025-04-03 02:23:36,641 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/088600c8-6e9b-4390-b69d-e3020e6df093
2025-04-03 02:23:36,660 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77861256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8052632162647494335', 'uuid-lslong': '13392798471180629257'}, 'enable': 'true', 'created': '2025-04-03T02:23:34', 'last-modified': '2025-04-03T02:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061023'}
2025-04-03 02:23:36,668 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 02:23:36,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61359073 passed
2025-04-03 02:23:36,669 - DEBUG - ====Verifying policy data for ctest-vn-61359073 in API_Server ======
2025-04-03 02:23:36,669 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-04-03 02:23:36,677 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c
2025-04-03 02:23:36,700 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521
2025-04-03 02:23:36,787 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509
2025-04-03 02:23:36,800 - DEBUG - ==>Verifying data for policy with id: 8df51b7f-f113-4af8-b96d-aec45a3b4fa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']
2025-04-03 02:23:36,800 - INFO - VN ctest-vn-61359073 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 02:23:36,800 - DEBUG - Verifying the vn in opserver
2025-04-03 02:23:36,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073 virtual network link through opserver 10.0.0.54
2025-04-03 02:23:36,800 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-04-03 02:23:37,119 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-04-03 02:23:37,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073?flat'}
2025-04-03 02:23:37,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073 is found in opserver
2025-04-03 02:23:37,202 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 02:23:37,208 - DEBUG - VRF ids for VN ctest-vn-61359073: {}
2025-04-03 02:23:37,209 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-04-03 02:23:37,216 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c
2025-04-03 02:23:37,230 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521
2025-04-03 02:23:37,309 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,324 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,335 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f
2025-04-03 02:23:37,344 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f
2025-04-03 02:23:37,353 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/2d1ba398-c9ae-43b4-b3b2-135cf651014e
2025-04-03 02:23:37,361 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 02:23:37,361 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,372 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f
2025-04-03 02:23:37,390 - INFO - Verified VN network id 9 for VN 14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,390 - INFO - Verifications in API Server for VN ctest-vn-65123235 passed
2025-04-03 02:23:37,390 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,401 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f
2025-04-03 02:23:37,410 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f
2025-04-03 02:23:37,419 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/2d1ba398-c9ae-43b4-b3b2-135cf651014e
2025-04-03 02:23:37,434 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77861256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1495934866457445964', 'uuid-lslong': '9229894953081338376'}, 'enable': 'true', 'created': '2025-04-03T02:23:34', 'last-modified': '2025-04-03T02:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566462'}
2025-04-03 02:23:37,441 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 02:23:37,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65123235 passed
2025-04-03 02:23:37,441 - DEBUG - ====Verifying policy data for ctest-vn-65123235 in API_Server ======
2025-04-03 02:23:37,441 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-04-03 02:23:37,449 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c
2025-04-03 02:23:37,463 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521
2025-04-03 02:23:37,543 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08
2025-04-03 02:23:37,556 - DEBUG - ==>Verifying data for policy with id: 8df51b7f-f113-4af8-b96d-aec45a3b4fa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']
2025-04-03 02:23:37,556 - INFO - VN ctest-vn-65123235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 02:23:37,556 - DEBUG - Verifying the vn in opserver
2025-04-03 02:23:37,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235 virtual network link through opserver 10.0.0.54
2025-04-03 02:23:37,557 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-04-03 02:23:37,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235?flat'}
2025-04-03 02:23:37,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235 is found in opserver
2025-04-03 02:23:37,583 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 02:23:37,589 - DEBUG - VRF ids for VN ctest-vn-65123235: {}
2025-04-03 02:23:37,659 - DEBUG - Services list from nova: [