2025-02-03 09:08:13,182 - INFO - Domain Default found not creating
2025-02-03 09:08:13,373 - INFO - Project ctest-TestBasicPolicy-18851143 not found, creating it
2025-02-03 09:08:13,855 - INFO - Created Project:ctest-TestBasicPolicy-18851143, ID : 06541c80-f429-4eff-9f29-d32dfe2ef6a9
2025-02-03 09:08:15,314 - INFO - ================================================================================
2025-02-03 09:08:15,315 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 09:08:15,315 - 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-02-03 09:08:15,569 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with
2025-02-03 09:08:15,569 - INFO - Initial checks done. Running the testcase now
2025-02-03 09:08:15,569 - INFO -
2025-02-03 09:08:16,155 - DEBUG - Response for create_network : {'network': {'id': '1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b', 'name': 'ctest-vn-60772945', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-vn-60772945'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 09:08:16,367 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6dd4708-f805-4559-9a44-a36a26381837', 'name': '', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'network_id': '1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b', 'ip_version': 4, 'cidr': '102.208.18.0/26', 'allocation_pools': [{'start': '102.208.18.2', 'end': '102.208.18.62'}], 'gateway_ip': '102.208.18.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.208.18.2', 'tags': [], 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9'}}
2025-02-03 09:08:16,389 - INFO - Created VN ctest-vn-60772945
2025-02-03 09:08:16,442 - DEBUG - VN ctest-vn-60772945 UUID is 1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:16,746 - DEBUG - Response for create_network : {'network': {'id': '7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76', 'name': 'ctest-vn-26948424', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-vn-26948424'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 09:08:16,949 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a63f2ca-7ef6-4dc3-bd17-251a590a5e73', 'name': '', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'network_id': '7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76', 'ip_version': 4, 'cidr': '66.64.111.64/26', 'allocation_pools': [{'start': '66.64.111.66', 'end': '66.64.111.126'}], 'gateway_ip': '66.64.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.64.111.66', 'tags': [], 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9'}}
2025-02-03 09:08:16,969 - INFO - Created VN ctest-vn-26948424
2025-02-03 09:08:17,022 - DEBUG - VN ctest-vn-26948424 UUID is 7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:17,139 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945, 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-18851143:ctest-vn-26948424, 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-02-03 09:08:17,456 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b', 'name': 'ctest-vn-60772945', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6dd4708-f805-4559-9a44-a36a26381837'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-vn-60772945'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-policy-allow-all-89746791']], 'subnet_ipam': [{'subnet_cidr': '102.208.18.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 09:08:17,694 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76', 'name': 'ctest-vn-26948424', 'tenant_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'project_id': '06541c80f4294eff9f29d32dfe2ef6a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a63f2ca-7ef6-4dc3-bd17-251a590a5e73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-vn-26948424'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-policy-allow-all-89746791']], 'subnet_ipam': [{'subnet_cidr': '66.64.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 09:08:17,879 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 09:08:18,184 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 09:08:18,214 - DEBUG - Requesting: http://10.0.0.24:8082/domain/65f823cd-ca4d-4201-864a-d4c9241abb61
2025-02-03 09:08:18,229 - DEBUG - Requesting: http://10.0.0.24:8082/project/06541c80-f429-4eff-9f29-d32dfe2ef6a9
2025-02-03 09:08:18,308 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,323 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,334 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4f62ab39-f026-41f2-943e-f9c6e985163b
2025-02-03 09:08:18,344 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4f62ab39-f026-41f2-943e-f9c6e985163b
2025-02-03 09:08:18,352 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b4b87c62-38af-4dcd-b64e-e90f25ece832
2025-02-03 09:08:18,361 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 09:08:18,361 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,374 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4f62ab39-f026-41f2-943e-f9c6e985163b
2025-02-03 09:08:18,393 - INFO - Verified VN network id 8 for VN 1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,394 - INFO - Verifications in API Server for VN ctest-vn-60772945 passed
2025-02-03 09:08:18,394 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,407 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4f62ab39-f026-41f2-943e-f9c6e985163b
2025-02-03 09:08:18,416 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4f62ab39-f026-41f2-943e-f9c6e985163b
2025-02-03 09:08:18,425 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b4b87c62-38af-4dcd-b64e-e90f25ece832
2025-02-03 09:08:18,442 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18851143', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2215737868103798443', 'uuid-lslong': '11159231646903855899'}, 'enable': 'true', 'created': '2025-02-03T09:08:16', 'last-modified': '2025-02-03T09:08:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015880'}
2025-02-03 09:08:18,449 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 09:08:18,449 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60772945 passed
2025-02-03 09:08:18,449 - DEBUG - ====Verifying policy data for ctest-vn-60772945 in API_Server ======
2025-02-03 09:08:18,449 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 09:08:18,457 - DEBUG - Requesting: http://10.0.0.24:8082/domain/65f823cd-ca4d-4201-864a-d4c9241abb61
2025-02-03 09:08:18,473 - DEBUG - Requesting: http://10.0.0.24:8082/project/06541c80-f429-4eff-9f29-d32dfe2ef6a9
2025-02-03 09:08:18,555 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1ebfe1d9-ffb5-4eab-9add-8e0f08006b1b
2025-02-03 09:08:18,569 - DEBUG - ==>Verifying data for policy with id: 1a37336a-2a00-40ad-afaf-e42fcf1cee1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-policy-allow-all-89746791']
2025-02-03 09:08:18,569 - INFO - VN ctest-vn-60772945 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 09:08:18,569 - DEBUG - Verifying the vn in opserver
2025-02-03 09:08:18,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945 virtual network link through opserver 10.0.0.24
2025-02-03 09:08:18,569 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 09:08:18,864 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 09:08:18,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945?flat'}
2025-02-03 09:08:18,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-60772945 is found in opserver
2025-02-03 09:08:18,932 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 09:08:18,938 - DEBUG - VRF ids for VN ctest-vn-60772945: {}
2025-02-03 09:08:18,938 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 09:08:18,944 - DEBUG - Requesting: http://10.0.0.24:8082/domain/65f823cd-ca4d-4201-864a-d4c9241abb61
2025-02-03 09:08:18,955 - DEBUG - Requesting: http://10.0.0.24:8082/project/06541c80-f429-4eff-9f29-d32dfe2ef6a9
2025-02-03 09:08:19,026 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,042 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,054 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9160099b-9461-4846-8d4a-cf73d1abb61d
2025-02-03 09:08:19,065 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9160099b-9461-4846-8d4a-cf73d1abb61d
2025-02-03 09:08:19,075 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/6c673c77-783e-4e86-9c2c-c66e1ffa2586
2025-02-03 09:08:19,084 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 09:08:19,084 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,094 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9160099b-9461-4846-8d4a-cf73d1abb61d
2025-02-03 09:08:19,111 - INFO - Verified VN network id 9 for VN 7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,111 - INFO - Verifications in API Server for VN ctest-vn-26948424 passed
2025-02-03 09:08:19,111 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,125 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9160099b-9461-4846-8d4a-cf73d1abb61d
2025-02-03 09:08:19,134 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9160099b-9461-4846-8d4a-cf73d1abb61d
2025-02-03 09:08:19,141 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/6c673c77-783e-4e86-9c2c-c66e1ffa2586
2025-02-03 09:08:19,155 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-26948424', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18851143', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8863677032456735728', 'uuid-lslong': '9963242403671662454'}, 'enable': 'true', 'created': '2025-02-03T09:08:16', 'last-modified': '2025-02-03T09:08:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.485859'}
2025-02-03 09:08:19,164 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 09:08:19,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26948424 passed
2025-02-03 09:08:19,164 - DEBUG - ====Verifying policy data for ctest-vn-26948424 in API_Server ======
2025-02-03 09:08:19,164 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-03 09:08:19,171 - DEBUG - Requesting: http://10.0.0.24:8082/domain/65f823cd-ca4d-4201-864a-d4c9241abb61
2025-02-03 09:08:19,186 - DEBUG - Requesting: http://10.0.0.24:8082/project/06541c80-f429-4eff-9f29-d32dfe2ef6a9
2025-02-03 09:08:19,259 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7b021b4c-9b5f-4bf0-8a44-8c2db9f55f76
2025-02-03 09:08:19,270 - DEBUG - ==>Verifying data for policy with id: 1a37336a-2a00-40ad-afaf-e42fcf1cee1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-18851143', 'ctest-policy-allow-all-89746791']
2025-02-03 09:08:19,270 - INFO - VN ctest-vn-26948424 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 09:08:19,270 - DEBUG - Verifying the vn in opserver
2025-02-03 09:08:19,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-26948424 virtual network link through opserver 10.0.0.24
2025-02-03 09:08:19,270 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-03 09:08:19,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-26948424', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-26948424?flat'}
2025-02-03 09:08:19,282 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18851143:ctest-vn-26948424 is found in opserver
2025-02-03 09:08:19,293 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 09:08:19,298 - DEBUG - VRF ids for VN ctest-vn-26948424: {}
2025-02-03 09:08:19,359 - DEBUG - Services list from nova: [