2025-04-14 23:03:08,651 - INFO - Domain Default found not creating
2025-04-14 23:03:08,804 - INFO - Project ctest-TestBasicPolicy-08438773 not found, creating it
2025-04-14 23:03:09,247 - INFO - Created Project:ctest-TestBasicPolicy-08438773, ID : 33672801-a006-4485-826e-1442504dbf4e
2025-04-14 23:03:10,775 - INFO - ================================================================================
2025-04-14 23:03:10,775 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 23:03:10,776 - 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-14 23:03:11,034 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-14 23:03:11,034 - INFO - Initial checks done. Running the testcase now
2025-04-14 23:03:11,034 - INFO -
2025-04-14 23:03:11,593 - DEBUG - Response for create_network : {'network': {'id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'name': 'ctest-vn-16353952', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-16353952'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 23:03:11,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd749f6d2-2379-49bb-9c57-cf3975798ffb', 'name': '', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'network_id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'ip_version': 4, 'cidr': '3.158.10.192/26', 'allocation_pools': [{'start': '3.158.10.194', 'end': '3.158.10.254'}], 'gateway_ip': '3.158.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.158.10.194', 'tags': [], 'project_id': '33672801a0064485826e1442504dbf4e'}}
2025-04-14 23:03:11,779 - INFO - Created VN ctest-vn-16353952
2025-04-14 23:03:11,832 - DEBUG - VN ctest-vn-16353952 UUID is 0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:12,119 - DEBUG - Response for create_network : {'network': {'id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'name': 'ctest-vn-97141134', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-97141134'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 23:03:12,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '644afcef-e88b-4b58-80df-4a7cee7875b5', 'name': '', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'network_id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'ip_version': 4, 'cidr': '34.246.91.128/26', 'allocation_pools': [{'start': '34.246.91.130', 'end': '34.246.91.190'}], 'gateway_ip': '34.246.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.246.91.130', 'tags': [], 'project_id': '33672801a0064485826e1442504dbf4e'}}
2025-04-14 23:03:12,330 - INFO - Created VN ctest-vn-97141134
2025-04-14 23:03:12,380 - DEBUG - VN ctest-vn-97141134 UUID is 51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:12,496 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952, 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-08438773:ctest-vn-97141134, 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-14 23:03:12,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'name': 'ctest-vn-16353952', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d749f6d2-2379-49bb-9c57-cf3975798ffb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-16353952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']], 'subnet_ipam': [{'subnet_cidr': '3.158.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 23:03:13,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'name': 'ctest-vn-97141134', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['644afcef-e88b-4b58-80df-4a7cee7875b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-97141134'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']], 'subnet_ipam': [{'subnet_cidr': '34.246.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 23:03:13,167 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-14 23:03:13,462 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-14 23:03:13,494 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac
2025-04-14 23:03:13,508 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e
2025-04-14 23:03:13,582 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,591 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,600 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc
2025-04-14 23:03:13,609 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc
2025-04-14 23:03:13,617 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b72024d6-fb5e-4e5f-8010-f449fc5f4233
2025-04-14 23:03:13,624 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 23:03:13,624 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,632 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc
2025-04-14 23:03:13,645 - INFO - Verified VN network id 9 for VN 0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,645 - INFO - Verifications in API Server for VN ctest-vn-16353952 passed
2025-04-14 23:03:13,645 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,654 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc
2025-04-14 23:03:13,661 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc
2025-04-14 23:03:13,668 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b72024d6-fb5e-4e5f-8010-f449fc5f4233
2025-04-14 23:03:13,681 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08438773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '315484636143698533', 'uuid-lslong': '13611839705095689531'}, 'enable': 'true', 'created': '2025-04-14T23:03:11', 'last-modified': '2025-04-14T23:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910952'}
2025-04-14 23:03:13,688 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 23:03:13,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16353952 passed
2025-04-14 23:03:13,688 - DEBUG - ====Verifying policy data for ctest-vn-16353952 in API_Server ======
2025-04-14 23:03:13,688 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-14 23:03:13,694 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac
2025-04-14 23:03:13,706 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e
2025-04-14 23:03:13,773 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b
2025-04-14 23:03:13,781 - DEBUG - ==>Verifying data for policy with id: ba245490-417f-4b2b-b381-db9d7932f79d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']
2025-04-14 23:03:13,781 - INFO - VN ctest-vn-16353952 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 23:03:13,781 - DEBUG - Verifying the vn in opserver
2025-04-14 23:03:13,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952 virtual network link through opserver 10.0.0.65
2025-04-14 23:03:13,782 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-14 23:03:14,074 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-14 23:03:14,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952?flat'}
2025-04-14 23:03:14,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952 is found in opserver
2025-04-14 23:03:14,144 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 23:03:14,150 - DEBUG - VRF ids for VN ctest-vn-16353952: {}
2025-04-14 23:03:14,150 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-14 23:03:14,156 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac
2025-04-14 23:03:14,168 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e
2025-04-14 23:03:14,233 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,244 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,252 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e
2025-04-14 23:03:14,260 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e
2025-04-14 23:03:14,267 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3acb8eb9-3e95-493d-b028-ea1d96f312a7
2025-04-14 23:03:14,273 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 23:03:14,274 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,281 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e
2025-04-14 23:03:14,294 - INFO - Verified VN network id 10 for VN 51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,294 - INFO - Verifications in API Server for VN ctest-vn-97141134 passed
2025-04-14 23:03:14,294 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,303 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e
2025-04-14 23:03:14,310 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e
2025-04-14 23:03:14,318 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3acb8eb9-3e95-493d-b028-ea1d96f312a7
2025-04-14 23:03:14,330 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08438773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5892954495040441854', 'uuid-lslong': '10769213750637157027'}, 'enable': 'true', 'created': '2025-04-14T23:03:12', 'last-modified': '2025-04-14T23:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326007'}
2025-04-14 23:03:14,337 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 23:03:14,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97141134 passed
2025-04-14 23:03:14,337 - DEBUG - ====Verifying policy data for ctest-vn-97141134 in API_Server ======
2025-04-14 23:03:14,337 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-14 23:03:14,343 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac
2025-04-14 23:03:14,355 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e
2025-04-14 23:03:14,424 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3
2025-04-14 23:03:14,433 - DEBUG - ==>Verifying data for policy with id: ba245490-417f-4b2b-b381-db9d7932f79d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']
2025-04-14 23:03:14,433 - INFO - VN ctest-vn-97141134 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 23:03:14,433 - DEBUG - Verifying the vn in opserver
2025-04-14 23:03:14,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134 virtual network link through opserver 10.0.0.65
2025-04-14 23:03:14,433 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-14 23:03:14,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134?flat'}
2025-04-14 23:03:14,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134 is found in opserver
2025-04-14 23:03:14,455 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 23:03:14,461 - DEBUG - VRF ids for VN ctest-vn-97141134: {}
2025-04-14 23:03:14,528 - DEBUG - Services list from nova: [