2025-06-16 12:54:16,732 - INFO - Domain Default found not creating
2025-06-16 12:54:16,884 - INFO - Project ctest-TestBasicPolicy-00406991 not found, creating it
2025-06-16 12:54:17,394 - INFO - Created Project:ctest-TestBasicPolicy-00406991, ID : 065c49aa-5c8f-4d1a-88a6-a0b79631fca4
2025-06-16 12:54:19,011 - INFO - ================================================================================
2025-06-16 12:54:19,011 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-16 12:54:19,011 - 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-06-16 12:54:19,281 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-16 12:54:19,281 - INFO - Initial checks done. Running the testcase now
2025-06-16 12:54:19,281 - INFO -
2025-06-16 12:54:19,893 - DEBUG - Response for create_network : {'network': {'id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'name': 'ctest-vn-29364853', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-29364853'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 12:54:20,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd0c718-4dc8-47ad-9614-eeae56c30c49', 'name': '', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'network_id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'ip_version': 4, 'cidr': '143.254.180.0/26', 'allocation_pools': [{'start': '143.254.180.2', 'end': '143.254.180.62'}], 'gateway_ip': '143.254.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.254.180.2', 'tags': [], 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4'}}
2025-06-16 12:54:20,142 - INFO - Created VN ctest-vn-29364853
2025-06-16 12:54:20,196 - DEBUG - VN ctest-vn-29364853 UUID is 46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:20,512 - DEBUG - Response for create_network : {'network': {'id': '12585413-1e54-4e80-84db-b6b42e04a156', 'name': 'ctest-vn-78827594', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-78827594'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 12:54:20,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a5725f-eca8-47bd-9de8-169041756ea2', 'name': '', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'network_id': '12585413-1e54-4e80-84db-b6b42e04a156', 'ip_version': 4, 'cidr': '128.94.231.64/26', 'allocation_pools': [{'start': '128.94.231.66', 'end': '128.94.231.126'}], 'gateway_ip': '128.94.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.94.231.66', 'tags': [], 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4'}}
2025-06-16 12:54:20,722 - INFO - Created VN ctest-vn-78827594
2025-06-16 12:54:20,780 - DEBUG - VN ctest-vn-78827594 UUID is 12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:20,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853, 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-00406991:ctest-vn-78827594, 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-06-16 12:54:21,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'name': 'ctest-vn-29364853', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd0c718-4dc8-47ad-9614-eeae56c30c49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-29364853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']], 'subnet_ipam': [{'subnet_cidr': '143.254.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 12:54:21,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12585413-1e54-4e80-84db-b6b42e04a156', 'name': 'ctest-vn-78827594', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a5725f-eca8-47bd-9de8-169041756ea2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-78827594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']], 'subnet_ipam': [{'subnet_cidr': '128.94.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 12:54:21,600 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 12:54:21,943 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 12:54:21,974 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68
2025-06-16 12:54:21,990 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4
2025-06-16 12:54:22,069 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea
2025-06-16 12:54:22,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea
2025-06-16 12:54:22,115 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8071c80f-8711-4c49-89ad-60a8fcd9c2ab
2025-06-16 12:54:22,122 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 12:54:22,122 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,134 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea
2025-06-16 12:54:22,150 - INFO - Verified VN network id 8 for VN 46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,150 - INFO - Verifications in API Server for VN ctest-vn-29364853 passed
2025-06-16 12:54:22,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea
2025-06-16 12:54:22,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea
2025-06-16 12:54:22,179 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8071c80f-8711-4c49-89ad-60a8fcd9c2ab
2025-06-16 12:54:22,194 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00406991', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5107070371880652613', 'uuid-lslong': '12200650246019294316'}, 'enable': 'true', 'created': '2025-06-16T12:54:19', 'last-modified': '2025-06-16T12:54:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010591'}
2025-06-16 12:54:22,202 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 12:54:22,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29364853 passed
2025-06-16 12:54:22,202 - DEBUG - ====Verifying policy data for ctest-vn-29364853 in API_Server ======
2025-06-16 12:54:22,202 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 12:54:22,211 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68
2025-06-16 12:54:22,225 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4
2025-06-16 12:54:22,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c
2025-06-16 12:54:22,313 - DEBUG - ==>Verifying data for policy with id: 2935b981-cd5b-40b9-9aac-f6e633ea622a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']
2025-06-16 12:54:22,314 - INFO - VN ctest-vn-29364853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 12:54:22,314 - DEBUG - Verifying the vn in opserver
2025-06-16 12:54:22,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853 virtual network link through opserver 10.0.0.254
2025-06-16 12:54:22,314 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 12:54:22,648 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 12:54:22,706 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853?flat'}
2025-06-16 12:54:22,706 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853 is found in opserver
2025-06-16 12:54:22,719 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 12:54:22,725 - DEBUG - VRF ids for VN ctest-vn-29364853: {}
2025-06-16 12:54:22,725 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 12:54:22,732 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68
2025-06-16 12:54:22,744 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4
2025-06-16 12:54:22,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:22,833 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:22,844 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e
2025-06-16 12:54:22,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e
2025-06-16 12:54:22,860 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d8d3a1f-9239-47e2-a010-8f56e429b88d
2025-06-16 12:54:22,868 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 12:54:22,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:22,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e
2025-06-16 12:54:22,893 - INFO - Verified VN network id 9 for VN 12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:22,894 - INFO - Verifications in API Server for VN ctest-vn-78827594 passed
2025-06-16 12:54:22,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:22,906 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e
2025-06-16 12:54:22,914 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e
2025-06-16 12:54:22,922 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d8d3a1f-9239-47e2-a010-8f56e429b88d
2025-06-16 12:54:22,936 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00406991', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1321898931723193984', 'uuid-lslong': '9573446317888545110'}, 'enable': 'true', 'created': '2025-06-16T12:54:20', 'last-modified': '2025-06-16T12:54:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.514345'}
2025-06-16 12:54:22,943 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 12:54:22,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78827594 passed
2025-06-16 12:54:22,943 - DEBUG - ====Verifying policy data for ctest-vn-78827594 in API_Server ======
2025-06-16 12:54:22,943 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 12:54:22,950 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68
2025-06-16 12:54:22,964 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4
2025-06-16 12:54:23,039 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156
2025-06-16 12:54:23,051 - DEBUG - ==>Verifying data for policy with id: 2935b981-cd5b-40b9-9aac-f6e633ea622a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']
2025-06-16 12:54:23,051 - INFO - VN ctest-vn-78827594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 12:54:23,051 - DEBUG - Verifying the vn in opserver
2025-06-16 12:54:23,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594 virtual network link through opserver 10.0.0.254
2025-06-16 12:54:23,051 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 12:54:23,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594?flat'}
2025-06-16 12:54:23,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594 is found in opserver
2025-06-16 12:54:23,082 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 12:54:23,089 - DEBUG - VRF ids for VN ctest-vn-78827594: {}
2025-06-16 12:54:23,146 - DEBUG - Services list from nova: [