2025-04-15 18:12:47,300 - INFO - Domain Default found not creating
2025-04-15 18:12:47,442 - INFO - Project ctest-TestBasicPolicy-11855577 not found, creating it
2025-04-15 18:12:47,904 - INFO - Created Project:ctest-TestBasicPolicy-11855577, ID : 0e52831d-fd1e-45ab-834e-ab0d57d6d615
2025-04-15 18:12:49,453 - INFO - ================================================================================
2025-04-15 18:12:49,453 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 18:12:49,453 - 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-15 18:12:49,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-15 18:12:49,718 - INFO - Initial checks done. Running the testcase now
2025-04-15 18:12:49,718 - INFO -
2025-04-15 18:12:50,339 - DEBUG - Response for create_network : {'network': {'id': '0645bb61-8346-4deb-ab20-3179de9e6aea', 'name': 'ctest-vn-92297036', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'project_id': '0e52831dfd1e45ab834eab0d57d6d615', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-vn-92297036'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 18:12:50,546 - DEBUG - Response for create_subnet : {'subnet': {'id': '799bcedc-28f0-4458-97de-d9e7f218b719', 'name': '', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'network_id': '0645bb61-8346-4deb-ab20-3179de9e6aea', 'ip_version': 4, 'cidr': '53.206.131.64/26', 'allocation_pools': [{'start': '53.206.131.66', 'end': '53.206.131.126'}], 'gateway_ip': '53.206.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.206.131.66', 'tags': [], 'project_id': '0e52831dfd1e45ab834eab0d57d6d615'}}
2025-04-15 18:12:50,564 - INFO - Created VN ctest-vn-92297036
2025-04-15 18:12:50,618 - DEBUG - VN ctest-vn-92297036 UUID is 0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:50,901 - DEBUG - Response for create_network : {'network': {'id': '1487d083-d0ef-4b7f-b441-38a37cdbf7f8', 'name': 'ctest-vn-19531383', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'project_id': '0e52831dfd1e45ab834eab0d57d6d615', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-vn-19531383'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 18:12:51,085 - DEBUG - Response for create_subnet : {'subnet': {'id': '57515dd8-f89b-46aa-ba41-c8947523b92c', 'name': '', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'network_id': '1487d083-d0ef-4b7f-b441-38a37cdbf7f8', 'ip_version': 4, 'cidr': '34.192.241.128/26', 'allocation_pools': [{'start': '34.192.241.130', 'end': '34.192.241.190'}], 'gateway_ip': '34.192.241.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.192.241.130', 'tags': [], 'project_id': '0e52831dfd1e45ab834eab0d57d6d615'}}
2025-04-15 18:12:51,102 - INFO - Created VN ctest-vn-19531383
2025-04-15 18:12:51,154 - DEBUG - VN ctest-vn-19531383 UUID is 1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:51,306 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036, 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-11855577:ctest-vn-19531383, 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-15 18:12:51,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0645bb61-8346-4deb-ab20-3179de9e6aea', 'name': 'ctest-vn-92297036', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'project_id': '0e52831dfd1e45ab834eab0d57d6d615', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['799bcedc-28f0-4458-97de-d9e7f218b719'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-vn-92297036'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-policy-allow-all-37988943']], 'subnet_ipam': [{'subnet_cidr': '53.206.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 18:12:51,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1487d083-d0ef-4b7f-b441-38a37cdbf7f8', 'name': 'ctest-vn-19531383', 'tenant_id': '0e52831dfd1e45ab834eab0d57d6d615', 'project_id': '0e52831dfd1e45ab834eab0d57d6d615', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57515dd8-f89b-46aa-ba41-c8947523b92c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-vn-19531383'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-policy-allow-all-37988943']], 'subnet_ipam': [{'subnet_cidr': '34.192.241.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 18:12:52,006 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 18:12:52,300 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 18:12:52,337 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ac681e4-2782-45eb-a063-ffd62b5ab77c
2025-04-15 18:12:52,352 - DEBUG - Requesting: http://10.0.0.254:8082/project/0e52831d-fd1e-45ab-834e-ab0d57d6d615
2025-04-15 18:12:52,431 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,443 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,453 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d51bca9-b1b1-4bc4-9beb-07e85502ee8e
2025-04-15 18:12:52,462 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d51bca9-b1b1-4bc4-9beb-07e85502ee8e
2025-04-15 18:12:52,469 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dd2afa5d-7fc8-4fca-a23a-c2724a0eff9e
2025-04-15 18:12:52,476 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 18:12:52,476 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,486 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d51bca9-b1b1-4bc4-9beb-07e85502ee8e
2025-04-15 18:12:52,501 - INFO - Verified VN network id 8 for VN 0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,502 - INFO - Verifications in API Server for VN ctest-vn-92297036 passed
2025-04-15 18:12:52,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,515 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d51bca9-b1b1-4bc4-9beb-07e85502ee8e
2025-04-15 18:12:52,524 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d51bca9-b1b1-4bc4-9beb-07e85502ee8e
2025-04-15 18:12:52,532 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dd2afa5d-7fc8-4fca-a23a-c2724a0eff9e
2025-04-15 18:12:52,545 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11855577', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '451973365109247467', 'uuid-lslong': '12330910179236145898'}, 'enable': 'true', 'created': '2025-04-15T18:12:50', 'last-modified': '2025-04-15T18:12:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964745'}
2025-04-15 18:12:52,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 18:12:52,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92297036 passed
2025-04-15 18:12:52,552 - DEBUG - ====Verifying policy data for ctest-vn-92297036 in API_Server ======
2025-04-15 18:12:52,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 18:12:52,558 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ac681e4-2782-45eb-a063-ffd62b5ab77c
2025-04-15 18:12:52,570 - DEBUG - Requesting: http://10.0.0.254:8082/project/0e52831d-fd1e-45ab-834e-ab0d57d6d615
2025-04-15 18:12:52,644 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0645bb61-8346-4deb-ab20-3179de9e6aea
2025-04-15 18:12:52,655 - DEBUG - ==>Verifying data for policy with id: 705274c3-b503-4985-bdc6-2fb22ae77903, fqn: ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-policy-allow-all-37988943']
2025-04-15 18:12:52,655 - INFO - VN ctest-vn-92297036 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 18:12:52,655 - DEBUG - Verifying the vn in opserver
2025-04-15 18:12:52,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036 virtual network link through opserver 10.0.0.254
2025-04-15 18:12:52,655 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 18:12:52,947 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 18:12:53,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036?flat'}
2025-04-15 18:12:53,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-92297036 is found in opserver
2025-04-15 18:12:53,014 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 18:12:53,019 - DEBUG - VRF ids for VN ctest-vn-92297036: {}
2025-04-15 18:12:53,019 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 18:12:53,026 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ac681e4-2782-45eb-a063-ffd62b5ab77c
2025-04-15 18:12:53,043 - DEBUG - Requesting: http://10.0.0.254:8082/project/0e52831d-fd1e-45ab-834e-ab0d57d6d615
2025-04-15 18:12:53,122 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,136 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,148 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4fb91d36-a9f8-45db-8655-8c91e78c723b
2025-04-15 18:12:53,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4fb91d36-a9f8-45db-8655-8c91e78c723b
2025-04-15 18:12:53,168 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6460b96e-c88c-4abc-911d-5038013e0f04
2025-04-15 18:12:53,175 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 18:12:53,175 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,187 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4fb91d36-a9f8-45db-8655-8c91e78c723b
2025-04-15 18:12:53,204 - INFO - Verified VN network id 9 for VN 1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,204 - INFO - Verifications in API Server for VN ctest-vn-19531383 passed
2025-04-15 18:12:53,204 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4fb91d36-a9f8-45db-8655-8c91e78c723b
2025-04-15 18:12:53,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4fb91d36-a9f8-45db-8655-8c91e78c723b
2025-04-15 18:12:53,231 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6460b96e-c88c-4abc-911d-5038013e0f04
2025-04-15 18:12:53,243 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-19531383', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11855577', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1479380267179133823', 'uuid-lslong': '12988725075138836472'}, 'enable': 'true', 'created': '2025-04-15T18:12:50', 'last-modified': '2025-04-15T18:12:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430422'}
2025-04-15 18:12:53,250 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 18:12:53,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19531383 passed
2025-04-15 18:12:53,250 - DEBUG - ====Verifying policy data for ctest-vn-19531383 in API_Server ======
2025-04-15 18:12:53,250 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 18:12:53,256 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6ac681e4-2782-45eb-a063-ffd62b5ab77c
2025-04-15 18:12:53,269 - DEBUG - Requesting: http://10.0.0.254:8082/project/0e52831d-fd1e-45ab-834e-ab0d57d6d615
2025-04-15 18:12:53,345 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1487d083-d0ef-4b7f-b441-38a37cdbf7f8
2025-04-15 18:12:53,356 - DEBUG - ==>Verifying data for policy with id: 705274c3-b503-4985-bdc6-2fb22ae77903, fqn: ['default-domain', 'ctest-TestBasicPolicy-11855577', 'ctest-policy-allow-all-37988943']
2025-04-15 18:12:53,356 - INFO - VN ctest-vn-19531383 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 18:12:53,356 - DEBUG - Verifying the vn in opserver
2025-04-15 18:12:53,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-19531383 virtual network link through opserver 10.0.0.254
2025-04-15 18:12:53,356 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 18:12:53,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-19531383', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-19531383?flat'}
2025-04-15 18:12:53,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11855577:ctest-vn-19531383 is found in opserver
2025-04-15 18:12:53,379 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 18:12:53,384 - DEBUG - VRF ids for VN ctest-vn-19531383: {}
2025-04-15 18:12:53,440 - DEBUG - Services list from nova: [