2025-02-11 16:53:00,433 - INFO - Domain Default found not creating
2025-02-11 16:53:00,597 - INFO - Project ctest-TestBasicPolicy-96694939 not found, creating it
2025-02-11 16:53:01,088 - INFO - Created Project:ctest-TestBasicPolicy-96694939, ID : 81a7e743-5dc8-4384-bbcd-a28fbccec7ab
2025-02-11 16:53:02,704 - INFO - ================================================================================
2025-02-11 16:53:02,704 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 16:53:02,704 - 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-11 16:53:02,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2025-02-11 16:53:02,964 - INFO - Initial checks done. Running the testcase now
2025-02-11 16:53:02,964 - INFO -
2025-02-11 16:53:03,560 - DEBUG - Response for create_network : {'network': {'id': '94a3641e-d9b1-4a85-bc85-4a3986a9f447', 'name': 'ctest-vn-90100646', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'project_id': '81a7e7435dc84384bbcda28fbccec7ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-vn-90100646'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 16:53:03,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '71d5fbb4-0450-439b-80ee-9fc666602a0a', 'name': '', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'network_id': '94a3641e-d9b1-4a85-bc85-4a3986a9f447', 'ip_version': 4, 'cidr': '61.155.0.128/26', 'allocation_pools': [{'start': '61.155.0.130', 'end': '61.155.0.190'}], 'gateway_ip': '61.155.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.155.0.130', 'tags': [], 'project_id': '81a7e7435dc84384bbcda28fbccec7ab'}}
2025-02-11 16:53:03,732 - INFO - Created VN ctest-vn-90100646
2025-02-11 16:53:03,786 - DEBUG - VN ctest-vn-90100646 UUID is 94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:04,078 - DEBUG - Response for create_network : {'network': {'id': 'fc8cdd63-931f-44a7-a35f-506b53cd82d4', 'name': 'ctest-vn-19847906', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'project_id': '81a7e7435dc84384bbcda28fbccec7ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-vn-19847906'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 16:53:04,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fcbb662-7069-4eee-9bab-94695d8adee1', 'name': '', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'network_id': 'fc8cdd63-931f-44a7-a35f-506b53cd82d4', 'ip_version': 4, 'cidr': '64.42.214.64/26', 'allocation_pools': [{'start': '64.42.214.66', 'end': '64.42.214.126'}], 'gateway_ip': '64.42.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.42.214.66', 'tags': [], 'project_id': '81a7e7435dc84384bbcda28fbccec7ab'}}
2025-02-11 16:53:04,253 - INFO - Created VN ctest-vn-19847906
2025-02-11 16:53:04,306 - DEBUG - VN ctest-vn-19847906 UUID is fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:04,425 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646, 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-96694939:ctest-vn-19847906, 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-11 16:53:04,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94a3641e-d9b1-4a85-bc85-4a3986a9f447', 'name': 'ctest-vn-90100646', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'project_id': '81a7e7435dc84384bbcda28fbccec7ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71d5fbb4-0450-439b-80ee-9fc666602a0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-vn-90100646'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-policy-allow-all-47016255']], 'subnet_ipam': [{'subnet_cidr': '61.155.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 16:53:04,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc8cdd63-931f-44a7-a35f-506b53cd82d4', 'name': 'ctest-vn-19847906', 'tenant_id': '81a7e7435dc84384bbcda28fbccec7ab', 'project_id': '81a7e7435dc84384bbcda28fbccec7ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fcbb662-7069-4eee-9bab-94695d8adee1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-vn-19847906'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-policy-allow-all-47016255']], 'subnet_ipam': [{'subnet_cidr': '64.42.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 16:53:05,150 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-11 16:53:05,490 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-11 16:53:05,521 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f6c3a80-1bbe-446f-9113-c2d8185d40f0
2025-02-11 16:53:05,536 - DEBUG - Requesting: http://10.0.0.12:8082/project/81a7e743-5dc8-4384-bbcd-a28fbccec7ab
2025-02-11 16:53:05,618 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,633 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,645 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc132ad7-02e5-4c07-b052-c6f800891b96
2025-02-11 16:53:05,654 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc132ad7-02e5-4c07-b052-c6f800891b96
2025-02-11 16:53:05,661 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/4f517bbe-076c-4918-9897-3808518b0cfb
2025-02-11 16:53:05,668 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 16:53:05,669 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,679 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc132ad7-02e5-4c07-b052-c6f800891b96
2025-02-11 16:53:05,696 - INFO - Verified VN network id 8 for VN 94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,696 - INFO - Verifications in API Server for VN ctest-vn-90100646 passed
2025-02-11 16:53:05,696 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,708 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc132ad7-02e5-4c07-b052-c6f800891b96
2025-02-11 16:53:05,715 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc132ad7-02e5-4c07-b052-c6f800891b96
2025-02-11 16:53:05,723 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/4f517bbe-076c-4918-9897-3808518b0cfb
2025-02-11 16:53:05,736 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96694939', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10710514422481242757', 'uuid-lslong': '13584345461965845575'}, 'enable': 'true', 'created': '2025-02-11T16:53:03', 'last-modified': '2025-02-11T16:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027731'}
2025-02-11 16:53:05,743 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 16:53:05,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90100646 passed
2025-02-11 16:53:05,744 - DEBUG - ====Verifying policy data for ctest-vn-90100646 in API_Server ======
2025-02-11 16:53:05,744 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-11 16:53:05,750 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f6c3a80-1bbe-446f-9113-c2d8185d40f0
2025-02-11 16:53:05,762 - DEBUG - Requesting: http://10.0.0.12:8082/project/81a7e743-5dc8-4384-bbcd-a28fbccec7ab
2025-02-11 16:53:05,833 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/94a3641e-d9b1-4a85-bc85-4a3986a9f447
2025-02-11 16:53:05,844 - DEBUG - ==>Verifying data for policy with id: ac850ed6-46e9-45e9-aee3-ca4179bce774, fqn: ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-policy-allow-all-47016255']
2025-02-11 16:53:05,844 - INFO - VN ctest-vn-90100646 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 16:53:05,844 - DEBUG - Verifying the vn in opserver
2025-02-11 16:53:05,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646 virtual network link through opserver 10.0.0.12
2025-02-11 16:53:05,845 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-11 16:53:06,181 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-11 16:53:06,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646?flat'}
2025-02-11 16:53:06,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-90100646 is found in opserver
2025-02-11 16:53:06,255 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 16:53:06,261 - DEBUG - VRF ids for VN ctest-vn-90100646: {}
2025-02-11 16:53:06,261 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-11 16:53:06,268 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f6c3a80-1bbe-446f-9113-c2d8185d40f0
2025-02-11 16:53:06,282 - DEBUG - Requesting: http://10.0.0.12:8082/project/81a7e743-5dc8-4384-bbcd-a28fbccec7ab
2025-02-11 16:53:06,357 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,370 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,380 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e20bc2b2-ec12-4c76-9d03-c34f86a40220
2025-02-11 16:53:06,388 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e20bc2b2-ec12-4c76-9d03-c34f86a40220
2025-02-11 16:53:06,396 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3e90067c-e563-443c-b9e4-5d536d065d0a
2025-02-11 16:53:06,403 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 16:53:06,403 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,413 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e20bc2b2-ec12-4c76-9d03-c34f86a40220
2025-02-11 16:53:06,428 - INFO - Verified VN network id 9 for VN fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,428 - INFO - Verifications in API Server for VN ctest-vn-19847906 passed
2025-02-11 16:53:06,428 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,439 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e20bc2b2-ec12-4c76-9d03-c34f86a40220
2025-02-11 16:53:06,447 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e20bc2b2-ec12-4c76-9d03-c34f86a40220
2025-02-11 16:53:06,454 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3e90067c-e563-443c-b9e4-5d536d065d0a
2025-02-11 16:53:06,467 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-19847906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96694939', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18198163614037132455', 'uuid-lslong': '11772216372867465940'}, 'enable': 'true', 'created': '2025-02-11T16:53:04', 'last-modified': '2025-02-11T16:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519359'}
2025-02-11 16:53:06,474 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 16:53:06,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19847906 passed
2025-02-11 16:53:06,474 - DEBUG - ====Verifying policy data for ctest-vn-19847906 in API_Server ======
2025-02-11 16:53:06,475 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-11 16:53:06,480 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f6c3a80-1bbe-446f-9113-c2d8185d40f0
2025-02-11 16:53:06,494 - DEBUG - Requesting: http://10.0.0.12:8082/project/81a7e743-5dc8-4384-bbcd-a28fbccec7ab
2025-02-11 16:53:06,565 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fc8cdd63-931f-44a7-a35f-506b53cd82d4
2025-02-11 16:53:06,577 - DEBUG - ==>Verifying data for policy with id: ac850ed6-46e9-45e9-aee3-ca4179bce774, fqn: ['default-domain', 'ctest-TestBasicPolicy-96694939', 'ctest-policy-allow-all-47016255']
2025-02-11 16:53:06,577 - INFO - VN ctest-vn-19847906 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 16:53:06,577 - DEBUG - Verifying the vn in opserver
2025-02-11 16:53:06,577 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-19847906 virtual network link through opserver 10.0.0.12
2025-02-11 16:53:06,577 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-11 16:53:06,589 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-19847906', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-19847906?flat'}
2025-02-11 16:53:06,589 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96694939:ctest-vn-19847906 is found in opserver
2025-02-11 16:53:06,600 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 16:53:06,606 - DEBUG - VRF ids for VN ctest-vn-19847906: {}
2025-02-11 16:53:06,666 - DEBUG - Services list from nova: [