2025-01-07 16:17:23,734 - INFO - Domain Default found not creating
2025-01-07 16:17:23,896 - INFO - Project ctest-TestBasicPolicy-04454000 not found, creating it
2025-01-07 16:17:24,373 - INFO - Created Project:ctest-TestBasicPolicy-04454000, ID : 11d63f3e-bb18-4e71-965a-35fc25bc661d
2025-01-07 16:17:25,880 - INFO - ================================================================================
2025-01-07 16:17:25,881 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 16:17:25,881 - 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-01-07 16:17:26,138 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.18': '0'}} with
2025-01-07 16:17:26,139 - INFO - Initial checks done. Running the testcase now
2025-01-07 16:17:26,139 - INFO -
2025-01-07 16:17:26,712 - DEBUG - Response for create_network : {'network': {'id': '560ae5fa-3b1f-4c61-ba81-dafa81eda639', 'name': 'ctest-vn-97087058', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'project_id': '11d63f3ebb184e71965a35fc25bc661d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-vn-97087058'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 16:17:26,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '5462c6e0-e800-45fd-a611-60f24dc58e8a', 'name': '', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'network_id': '560ae5fa-3b1f-4c61-ba81-dafa81eda639', 'ip_version': 4, 'cidr': '167.2.136.64/26', 'allocation_pools': [{'start': '167.2.136.66', 'end': '167.2.136.126'}], 'gateway_ip': '167.2.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.2.136.66', 'tags': [], 'project_id': '11d63f3ebb184e71965a35fc25bc661d'}}
2025-01-07 16:17:26,947 - INFO - Created VN ctest-vn-97087058
2025-01-07 16:17:27,002 - DEBUG - VN ctest-vn-97087058 UUID is 560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:27,298 - DEBUG - Response for create_network : {'network': {'id': 'f33865af-2f66-427e-b64a-a972d490038e', 'name': 'ctest-vn-62238405', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'project_id': '11d63f3ebb184e71965a35fc25bc661d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-vn-62238405'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 16:17:27,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '39b90ef8-51f0-4f58-93f7-e375f96959a2', 'name': '', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'network_id': 'f33865af-2f66-427e-b64a-a972d490038e', 'ip_version': 4, 'cidr': '13.255.245.64/26', 'allocation_pools': [{'start': '13.255.245.66', 'end': '13.255.245.126'}], 'gateway_ip': '13.255.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.255.245.66', 'tags': [], 'project_id': '11d63f3ebb184e71965a35fc25bc661d'}}
2025-01-07 16:17:27,491 - INFO - Created VN ctest-vn-62238405
2025-01-07 16:17:27,546 - DEBUG - VN ctest-vn-62238405 UUID is f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:27,680 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058, 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-04454000:ctest-vn-62238405, 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-01-07 16:17:28,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '560ae5fa-3b1f-4c61-ba81-dafa81eda639', 'name': 'ctest-vn-97087058', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'project_id': '11d63f3ebb184e71965a35fc25bc661d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5462c6e0-e800-45fd-a611-60f24dc58e8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-vn-97087058'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-policy-allow-all-86157274']], 'subnet_ipam': [{'subnet_cidr': '167.2.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 16:17:28,256 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f33865af-2f66-427e-b64a-a972d490038e', 'name': 'ctest-vn-62238405', 'tenant_id': '11d63f3ebb184e71965a35fc25bc661d', 'project_id': '11d63f3ebb184e71965a35fc25bc661d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39b90ef8-51f0-4f58-93f7-e375f96959a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-vn-62238405'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-policy-allow-all-86157274']], 'subnet_ipam': [{'subnet_cidr': '13.255.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 16:17:28,418 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-07 16:17:28,717 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-07 16:17:28,747 - DEBUG - Requesting: http://10.0.0.35:8082/domain/64c27948-1c68-4ae1-acea-01b9037f072f
2025-01-07 16:17:28,761 - DEBUG - Requesting: http://10.0.0.35:8082/project/11d63f3e-bb18-4e71-965a-35fc25bc661d
2025-01-07 16:17:28,838 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:28,850 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:28,862 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/10c9ba6d-d64b-4ee7-a0d8-28f0b2d698fc
2025-01-07 16:17:28,870 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/10c9ba6d-d64b-4ee7-a0d8-28f0b2d698fc
2025-01-07 16:17:28,878 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/b2b5de69-3bc0-4741-abb3-82ce1e71c603
2025-01-07 16:17:28,885 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 16:17:28,885 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:28,895 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/10c9ba6d-d64b-4ee7-a0d8-28f0b2d698fc
2025-01-07 16:17:28,912 - INFO - Verified VN network id 8 for VN 560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:28,912 - INFO - Verifications in API Server for VN ctest-vn-97087058 passed
2025-01-07 16:17:28,912 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:28,924 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/10c9ba6d-d64b-4ee7-a0d8-28f0b2d698fc
2025-01-07 16:17:28,932 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/10c9ba6d-d64b-4ee7-a0d8-28f0b2d698fc
2025-01-07 16:17:28,940 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/b2b5de69-3bc0-4741-abb3-82ce1e71c603
2025-01-07 16:17:28,956 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04454000', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6200020699925400673', 'uuid-lslong': '13439263532506785337'}, 'enable': 'true', 'created': '2025-01-07T16:17:26', 'last-modified': '2025-01-07T16:17:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977427'}
2025-01-07 16:17:28,963 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 16:17:28,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97087058 passed
2025-01-07 16:17:28,963 - DEBUG - ====Verifying policy data for ctest-vn-97087058 in API_Server ======
2025-01-07 16:17:28,963 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-07 16:17:28,970 - DEBUG - Requesting: http://10.0.0.35:8082/domain/64c27948-1c68-4ae1-acea-01b9037f072f
2025-01-07 16:17:28,982 - DEBUG - Requesting: http://10.0.0.35:8082/project/11d63f3e-bb18-4e71-965a-35fc25bc661d
2025-01-07 16:17:29,055 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/560ae5fa-3b1f-4c61-ba81-dafa81eda639
2025-01-07 16:17:29,065 - DEBUG - ==>Verifying data for policy with id: dfbf8110-5024-4b4a-812d-8676d0b83c2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-policy-allow-all-86157274']
2025-01-07 16:17:29,065 - INFO - VN ctest-vn-97087058 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 16:17:29,066 - DEBUG - Verifying the vn in opserver
2025-01-07 16:17:29,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058 virtual network link through opserver 10.0.0.35
2025-01-07 16:17:29,066 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-07 16:17:29,360 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-07 16:17:29,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058?flat'}
2025-01-07 16:17:29,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-97087058 is found in opserver
2025-01-07 16:17:29,437 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 16:17:29,443 - DEBUG - VRF ids for VN ctest-vn-97087058: {}
2025-01-07 16:17:29,443 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-07 16:17:29,449 - DEBUG - Requesting: http://10.0.0.35:8082/domain/64c27948-1c68-4ae1-acea-01b9037f072f
2025-01-07 16:17:29,462 - DEBUG - Requesting: http://10.0.0.35:8082/project/11d63f3e-bb18-4e71-965a-35fc25bc661d
2025-01-07 16:17:29,538 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,555 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,566 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7c428804-d59d-4e13-8f89-ac54587f9e2d
2025-01-07 16:17:29,575 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7c428804-d59d-4e13-8f89-ac54587f9e2d
2025-01-07 16:17:29,585 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/53f3c559-eb2a-4b48-ab47-760177daf735
2025-01-07 16:17:29,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 16:17:29,594 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,605 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7c428804-d59d-4e13-8f89-ac54587f9e2d
2025-01-07 16:17:29,621 - INFO - Verified VN network id 9 for VN f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,621 - INFO - Verifications in API Server for VN ctest-vn-62238405 passed
2025-01-07 16:17:29,621 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,633 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7c428804-d59d-4e13-8f89-ac54587f9e2d
2025-01-07 16:17:29,641 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7c428804-d59d-4e13-8f89-ac54587f9e2d
2025-01-07 16:17:29,649 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/53f3c559-eb2a-4b48-ab47-760177daf735
2025-01-07 16:17:29,665 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-62238405', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04454000', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17525869753001198206', 'uuid-lslong': '13135497573837046670'}, 'enable': 'true', 'created': '2025-01-07T16:17:27', 'last-modified': '2025-01-07T16:17:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.428820'}
2025-01-07 16:17:29,672 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 16:17:29,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62238405 passed
2025-01-07 16:17:29,672 - DEBUG - ====Verifying policy data for ctest-vn-62238405 in API_Server ======
2025-01-07 16:17:29,672 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-07 16:17:29,679 - DEBUG - Requesting: http://10.0.0.35:8082/domain/64c27948-1c68-4ae1-acea-01b9037f072f
2025-01-07 16:17:29,690 - DEBUG - Requesting: http://10.0.0.35:8082/project/11d63f3e-bb18-4e71-965a-35fc25bc661d
2025-01-07 16:17:29,764 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f33865af-2f66-427e-b64a-a972d490038e
2025-01-07 16:17:29,774 - DEBUG - ==>Verifying data for policy with id: dfbf8110-5024-4b4a-812d-8676d0b83c2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-04454000', 'ctest-policy-allow-all-86157274']
2025-01-07 16:17:29,775 - INFO - VN ctest-vn-62238405 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 16:17:29,775 - DEBUG - Verifying the vn in opserver
2025-01-07 16:17:29,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-62238405 virtual network link through opserver 10.0.0.35
2025-01-07 16:17:29,775 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-07 16:17:29,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-62238405', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-62238405?flat'}
2025-01-07 16:17:29,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04454000:ctest-vn-62238405 is found in opserver
2025-01-07 16:17:29,799 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 16:17:29,806 - DEBUG - VRF ids for VN ctest-vn-62238405: {}
2025-01-07 16:17:29,868 - DEBUG - Services list from nova: [