2025-04-25 10:30:42,116 - INFO - Domain Default found not creating
2025-04-25 10:30:42,227 - INFO - Project ctest-TestBasicPolicy-58539466 not found, creating it
2025-04-25 10:30:42,738 - INFO - Created Project:ctest-TestBasicPolicy-58539466, ID : 929b31fd-96c1-4607-9306-29c446087d1a
2025-04-25 10:30:43,946 - INFO - ================================================================================
2025-04-25 10:30:43,947 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 10:30:43,947 - 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-25 10:30:44,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-25 10:30:44,199 - INFO - Initial checks done. Running the testcase now
2025-04-25 10:30:44,199 - INFO -
2025-04-25 10:30:44,677 - DEBUG - Response for create_network : {'network': {'id': '1888deaf-04fe-4c54-bd11-a4e37bf29aa0', 'name': 'ctest-vn-21336099', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'project_id': '929b31fd96c14607930629c446087d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-vn-21336099'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:30:44,841 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eddee46b-5499-4803-8a30-ba430318628a', 'name': '', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'network_id': '1888deaf-04fe-4c54-bd11-a4e37bf29aa0', 'ip_version': 4, 'cidr': '197.114.94.0/26', 'allocation_pools': [{'start': '197.114.94.2', 'end': '197.114.94.62'}], 'gateway_ip': '197.114.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.114.94.2', 'tags': [], 'project_id': '929b31fd96c14607930629c446087d1a'}}
2025-04-25 10:30:44,855 - INFO - Created VN ctest-vn-21336099
2025-04-25 10:30:44,906 - DEBUG - VN ctest-vn-21336099 UUID is 1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:45,250 - DEBUG - Response for create_network : {'network': {'id': '0eac7c71-a33a-4935-b795-ab6be191ce8d', 'name': 'ctest-vn-34334608', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'project_id': '929b31fd96c14607930629c446087d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-vn-34334608'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:30:45,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '86d308d4-c4b3-498a-bac0-036a79db4dc0', 'name': '', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'network_id': '0eac7c71-a33a-4935-b795-ab6be191ce8d', 'ip_version': 4, 'cidr': '39.19.41.0/26', 'allocation_pools': [{'start': '39.19.41.2', 'end': '39.19.41.62'}], 'gateway_ip': '39.19.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.19.41.2', 'tags': [], 'project_id': '929b31fd96c14607930629c446087d1a'}}
2025-04-25 10:30:45,455 - INFO - Created VN ctest-vn-34334608
2025-04-25 10:30:45,510 - DEBUG - VN ctest-vn-34334608 UUID is 0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:45,658 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099, 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-58539466:ctest-vn-34334608, 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-25 10:30:45,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1888deaf-04fe-4c54-bd11-a4e37bf29aa0', 'name': 'ctest-vn-21336099', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'project_id': '929b31fd96c14607930629c446087d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eddee46b-5499-4803-8a30-ba430318628a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-vn-21336099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-policy-allow-all-80213709']], 'subnet_ipam': [{'subnet_cidr': '197.114.94.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:30:46,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0eac7c71-a33a-4935-b795-ab6be191ce8d', 'name': 'ctest-vn-34334608', 'tenant_id': '929b31fd96c14607930629c446087d1a', 'project_id': '929b31fd96c14607930629c446087d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86d308d4-c4b3-498a-bac0-036a79db4dc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-vn-34334608'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-policy-allow-all-80213709']], 'subnet_ipam': [{'subnet_cidr': '39.19.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:30:46,326 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 10:30:46,583 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 10:30:46,608 - DEBUG - Requesting: http://10.0.0.254:8082/domain/42b37280-2860-4f99-8b0b-8a8786ff382e
2025-04-25 10:30:46,621 - DEBUG - Requesting: http://10.0.0.254:8082/project/929b31fd-96c1-4607-9306-29c446087d1a
2025-04-25 10:30:46,692 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,703 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,713 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a449fe17-891c-4e3e-930b-c776ef897f20
2025-04-25 10:30:46,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a449fe17-891c-4e3e-930b-c776ef897f20
2025-04-25 10:30:46,726 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4da5f8c6-72f7-4ae7-9bff-4061e4710d5b
2025-04-25 10:30:46,732 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 10:30:46,732 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,740 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a449fe17-891c-4e3e-930b-c776ef897f20
2025-04-25 10:30:46,752 - INFO - Verified VN network id 9 for VN 1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,752 - INFO - Verifications in API Server for VN ctest-vn-21336099 passed
2025-04-25 10:30:46,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a449fe17-891c-4e3e-930b-c776ef897f20
2025-04-25 10:30:46,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a449fe17-891c-4e3e-930b-c776ef897f20
2025-04-25 10:30:46,770 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4da5f8c6-72f7-4ae7-9bff-4061e4710d5b
2025-04-25 10:30:46,780 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58539466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1767907697027337300', 'uuid-lslong': '13623851644716489376'}, 'enable': 'true', 'created': '2025-04-25T10:30:44', 'last-modified': '2025-04-25T10:30:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860994'}
2025-04-25 10:30:46,785 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 10:30:46,785 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21336099 passed
2025-04-25 10:30:46,785 - DEBUG - ====Verifying policy data for ctest-vn-21336099 in API_Server ======
2025-04-25 10:30:46,785 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 10:30:46,790 - DEBUG - Requesting: http://10.0.0.254:8082/domain/42b37280-2860-4f99-8b0b-8a8786ff382e
2025-04-25 10:30:46,799 - DEBUG - Requesting: http://10.0.0.254:8082/project/929b31fd-96c1-4607-9306-29c446087d1a
2025-04-25 10:30:46,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1888deaf-04fe-4c54-bd11-a4e37bf29aa0
2025-04-25 10:30:46,875 - DEBUG - ==>Verifying data for policy with id: b6d6ce73-4744-4fad-a1df-c15460898f77, fqn: ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-policy-allow-all-80213709']
2025-04-25 10:30:46,875 - INFO - VN ctest-vn-21336099 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 10:30:46,875 - DEBUG - Verifying the vn in opserver
2025-04-25 10:30:46,875 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099 virtual network link through opserver 10.0.0.254
2025-04-25 10:30:46,876 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 10:30:47,132 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 10:30:47,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099?flat'}
2025-04-25 10:30:47,176 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-21336099 is found in opserver
2025-04-25 10:30:47,186 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 10:30:47,190 - DEBUG - VRF ids for VN ctest-vn-21336099: {}
2025-04-25 10:30:47,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 10:30:47,195 - DEBUG - Requesting: http://10.0.0.254:8082/domain/42b37280-2860-4f99-8b0b-8a8786ff382e
2025-04-25 10:30:47,204 - DEBUG - Requesting: http://10.0.0.254:8082/project/929b31fd-96c1-4607-9306-29c446087d1a
2025-04-25 10:30:47,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,281 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,289 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dc669cb7-5684-40c8-b8a9-79d6544e1093
2025-04-25 10:30:47,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dc669cb7-5684-40c8-b8a9-79d6544e1093
2025-04-25 10:30:47,301 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ba306eb-c545-42d4-bcc1-cfab89a332f6
2025-04-25 10:30:47,305 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 10:30:47,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,313 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dc669cb7-5684-40c8-b8a9-79d6544e1093
2025-04-25 10:30:47,329 - INFO - Verified VN network id 10 for VN 0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,329 - INFO - Verifications in API Server for VN ctest-vn-34334608 passed
2025-04-25 10:30:47,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,339 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dc669cb7-5684-40c8-b8a9-79d6544e1093
2025-04-25 10:30:47,346 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dc669cb7-5684-40c8-b8a9-79d6544e1093
2025-04-25 10:30:47,351 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ba306eb-c545-42d4-bcc1-cfab89a332f6
2025-04-25 10:30:47,361 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-34334608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58539466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1057356840036878645', 'uuid-lslong': '13228667960304979597'}, 'enable': 'true', 'created': '2025-04-25T10:30:45', 'last-modified': '2025-04-25T10:30:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.218741'}
2025-04-25 10:30:47,366 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 10:30:47,366 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34334608 passed
2025-04-25 10:30:47,367 - DEBUG - ====Verifying policy data for ctest-vn-34334608 in API_Server ======
2025-04-25 10:30:47,367 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-25 10:30:47,371 - DEBUG - Requesting: http://10.0.0.254:8082/domain/42b37280-2860-4f99-8b0b-8a8786ff382e
2025-04-25 10:30:47,380 - DEBUG - Requesting: http://10.0.0.254:8082/project/929b31fd-96c1-4607-9306-29c446087d1a
2025-04-25 10:30:47,444 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0eac7c71-a33a-4935-b795-ab6be191ce8d
2025-04-25 10:30:47,452 - DEBUG - ==>Verifying data for policy with id: b6d6ce73-4744-4fad-a1df-c15460898f77, fqn: ['default-domain', 'ctest-TestBasicPolicy-58539466', 'ctest-policy-allow-all-80213709']
2025-04-25 10:30:47,452 - INFO - VN ctest-vn-34334608 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 10:30:47,452 - DEBUG - Verifying the vn in opserver
2025-04-25 10:30:47,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-34334608 virtual network link through opserver 10.0.0.254
2025-04-25 10:30:47,452 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-25 10:30:47,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-34334608', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-34334608?flat'}
2025-04-25 10:30:47,461 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58539466:ctest-vn-34334608 is found in opserver
2025-04-25 10:30:47,470 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 10:30:47,474 - DEBUG - VRF ids for VN ctest-vn-34334608: {}
2025-04-25 10:30:47,518 - DEBUG - Services list from nova: [