2025-03-28 10:23:00,309 - INFO - Domain Default found not creating
2025-03-28 10:23:00,486 - INFO - Project ctest-TestBasicPolicy-27456100 not found, creating it
2025-03-28 10:23:00,989 - INFO - Created Project:ctest-TestBasicPolicy-27456100, ID : aab7aeea-b3ea-406b-aea5-74d6fdf2e91f
2025-03-28 10:23:02,552 - INFO - ================================================================================
2025-03-28 10:23:02,552 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 10:23:02,552 - 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-03-28 10:23:02,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.7': '0'}} with
2025-03-28 10:23:02,814 - INFO - Initial checks done. Running the testcase now
2025-03-28 10:23:02,814 - INFO -
2025-03-28 10:23:03,394 - DEBUG - Response for create_network : {'network': {'id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'name': 'ctest-vn-99831409', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-99831409'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 10:23:03,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a859766-f6bb-44ec-8cd1-56be416908c2', 'name': '', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'network_id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'ip_version': 4, 'cidr': '157.153.70.64/26', 'allocation_pools': [{'start': '157.153.70.66', 'end': '157.153.70.126'}], 'gateway_ip': '157.153.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.153.70.66', 'tags': [], 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f'}}
2025-03-28 10:23:03,599 - INFO - Created VN ctest-vn-99831409
2025-03-28 10:23:03,655 - DEBUG - VN ctest-vn-99831409 UUID is e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:03,978 - DEBUG - Response for create_network : {'network': {'id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'name': 'ctest-vn-04224950', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-04224950'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 10:23:04,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '62664aff-c448-4d01-b223-5ac94d8577ae', 'name': '', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'network_id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'ip_version': 4, 'cidr': '40.196.132.192/26', 'allocation_pools': [{'start': '40.196.132.194', 'end': '40.196.132.254'}], 'gateway_ip': '40.196.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.196.132.194', 'tags': [], 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f'}}
2025-03-28 10:23:04,210 - INFO - Created VN ctest-vn-04224950
2025-03-28 10:23:04,263 - DEBUG - VN ctest-vn-04224950 UUID is cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:04,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409, 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-27456100:ctest-vn-04224950, 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-03-28 10:23:04,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'name': 'ctest-vn-99831409', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a859766-f6bb-44ec-8cd1-56be416908c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-99831409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']], 'subnet_ipam': [{'subnet_cidr': '157.153.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 10:23:04,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'name': 'ctest-vn-04224950', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62664aff-c448-4d01-b223-5ac94d8577ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-04224950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']], 'subnet_ipam': [{'subnet_cidr': '40.196.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 10:23:05,171 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-28 10:23:05,468 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-28 10:23:05,503 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54
2025-03-28 10:23:05,517 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f
2025-03-28 10:23:05,597 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,613 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,625 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f
2025-03-28 10:23:05,635 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f
2025-03-28 10:23:05,645 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/27e93a6b-635c-477d-a4cc-94d54c659e5b
2025-03-28 10:23:05,653 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 10:23:05,653 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,664 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f
2025-03-28 10:23:05,681 - INFO - Verified VN network id 8 for VN e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,681 - INFO - Verifications in API Server for VN ctest-vn-99831409 passed
2025-03-28 10:23:05,681 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,694 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f
2025-03-28 10:23:05,702 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f
2025-03-28 10:23:05,710 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/27e93a6b-635c-477d-a4cc-94d54c659e5b
2025-03-28 10:23:05,728 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27456100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16673312900481564924', 'uuid-lslong': '10208354942398833032'}, 'enable': 'true', 'created': '2025-03-28T10:23:03', 'last-modified': '2025-03-28T10:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044216'}
2025-03-28 10:23:05,737 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 10:23:05,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99831409 passed
2025-03-28 10:23:05,737 - DEBUG - ====Verifying policy data for ctest-vn-99831409 in API_Server ======
2025-03-28 10:23:05,737 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-28 10:23:05,744 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54
2025-03-28 10:23:05,758 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f
2025-03-28 10:23:05,840 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188
2025-03-28 10:23:05,850 - DEBUG - ==>Verifying data for policy with id: 95eeeaee-7152-40a5-ae7b-91b0c9d969d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']
2025-03-28 10:23:05,850 - INFO - VN ctest-vn-99831409 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 10:23:05,850 - DEBUG - Verifying the vn in opserver
2025-03-28 10:23:05,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409 virtual network link through opserver 10.0.0.42
2025-03-28 10:23:05,850 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-28 10:23:06,142 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-28 10:23:06,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409?flat'}
2025-03-28 10:23:06,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409 is found in opserver
2025-03-28 10:23:06,217 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 10:23:06,222 - DEBUG - VRF ids for VN ctest-vn-99831409: {}
2025-03-28 10:23:06,223 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-28 10:23:06,229 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54
2025-03-28 10:23:06,242 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f
2025-03-28 10:23:06,317 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,332 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,344 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d
2025-03-28 10:23:06,353 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d
2025-03-28 10:23:06,361 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8d05cf07-ac98-40ae-ae4c-22f83aec48f6
2025-03-28 10:23:06,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 10:23:06,368 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,378 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d
2025-03-28 10:23:06,396 - INFO - Verified VN network id 9 for VN cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,396 - INFO - Verifications in API Server for VN ctest-vn-04224950 passed
2025-03-28 10:23:06,396 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,410 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d
2025-03-28 10:23:06,420 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d
2025-03-28 10:23:06,428 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8d05cf07-ac98-40ae-ae4c-22f83aec48f6
2025-03-28 10:23:06,445 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27456100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14814654757416748083', 'uuid-lslong': '9589918277732011498'}, 'enable': 'true', 'created': '2025-03-28T10:23:03', 'last-modified': '2025-03-28T10:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490459'}
2025-03-28 10:23:06,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 10:23:06,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04224950 passed
2025-03-28 10:23:06,455 - DEBUG - ====Verifying policy data for ctest-vn-04224950 in API_Server ======
2025-03-28 10:23:06,455 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-28 10:23:06,462 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54
2025-03-28 10:23:06,477 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f
2025-03-28 10:23:06,552 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea
2025-03-28 10:23:06,562 - DEBUG - ==>Verifying data for policy with id: 95eeeaee-7152-40a5-ae7b-91b0c9d969d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']
2025-03-28 10:23:06,562 - INFO - VN ctest-vn-04224950 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 10:23:06,562 - DEBUG - Verifying the vn in opserver
2025-03-28 10:23:06,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950 virtual network link through opserver 10.0.0.42
2025-03-28 10:23:06,562 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-28 10:23:06,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950?flat'}
2025-03-28 10:23:06,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950 is found in opserver
2025-03-28 10:23:06,587 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 10:23:06,593 - DEBUG - VRF ids for VN ctest-vn-04224950: {}
2025-03-28 10:23:06,661 - DEBUG - Services list from nova: [