2025-04-24 10:05:36,197 - INFO - Domain Default found not creating
2025-04-24 10:05:36,325 - INFO - Project ctest-TestBasicPolicy-18081096 not found, creating it
2025-04-24 10:05:36,745 - INFO - Created Project:ctest-TestBasicPolicy-18081096, ID : 221bdec3-1b0b-4543-867f-2d83fa1a7574
2025-04-24 10:05:37,969 - INFO - ================================================================================
2025-04-24 10:05:37,969 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 10:05:37,969 - 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-24 10:05:38,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-04-24 10:05:38,231 - INFO - Initial checks done. Running the testcase now
2025-04-24 10:05:38,231 - INFO -
2025-04-24 10:05:38,731 - DEBUG - Response for create_network : {'network': {'id': 'df939e12-fba8-47ec-8330-8b1837e4ffc8', 'name': 'ctest-vn-36499820', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'project_id': '221bdec31b0b4543867f2d83fa1a7574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-vn-36499820'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 10:05:38,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e50cac9f-e788-41cb-9a7b-fc881dad9a2e', 'name': '', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'network_id': 'df939e12-fba8-47ec-8330-8b1837e4ffc8', 'ip_version': 4, 'cidr': '182.211.200.128/26', 'allocation_pools': [{'start': '182.211.200.130', 'end': '182.211.200.190'}], 'gateway_ip': '182.211.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.211.200.130', 'tags': [], 'project_id': '221bdec31b0b4543867f2d83fa1a7574'}}
2025-04-24 10:05:38,936 - INFO - Created VN ctest-vn-36499820
2025-04-24 10:05:38,989 - DEBUG - VN ctest-vn-36499820 UUID is df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:39,297 - DEBUG - Response for create_network : {'network': {'id': '2b24aed5-e5d8-49f8-96c8-da817ac39176', 'name': 'ctest-vn-03712835', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'project_id': '221bdec31b0b4543867f2d83fa1a7574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-vn-03712835'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 10:05:39,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '43b3fe76-4176-4de9-962d-20e2de26541b', 'name': '', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'network_id': '2b24aed5-e5d8-49f8-96c8-da817ac39176', 'ip_version': 4, 'cidr': '74.174.254.192/26', 'allocation_pools': [{'start': '74.174.254.194', 'end': '74.174.254.254'}], 'gateway_ip': '74.174.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.174.254.194', 'tags': [], 'project_id': '221bdec31b0b4543867f2d83fa1a7574'}}
2025-04-24 10:05:39,482 - INFO - Created VN ctest-vn-03712835
2025-04-24 10:05:39,537 - DEBUG - VN ctest-vn-03712835 UUID is 2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:39,681 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820, 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-18081096:ctest-vn-03712835, 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-24 10:05:39,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df939e12-fba8-47ec-8330-8b1837e4ffc8', 'name': 'ctest-vn-36499820', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'project_id': '221bdec31b0b4543867f2d83fa1a7574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e50cac9f-e788-41cb-9a7b-fc881dad9a2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-vn-36499820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-policy-allow-all-98528785']], 'subnet_ipam': [{'subnet_cidr': '182.211.200.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 10:05:40,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b24aed5-e5d8-49f8-96c8-da817ac39176', 'name': 'ctest-vn-03712835', 'tenant_id': '221bdec31b0b4543867f2d83fa1a7574', 'project_id': '221bdec31b0b4543867f2d83fa1a7574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43b3fe76-4176-4de9-962d-20e2de26541b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-vn-03712835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-policy-allow-all-98528785']], 'subnet_ipam': [{'subnet_cidr': '74.174.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 10:05:40,313 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 10:05:40,581 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 10:05:40,607 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ce61e4f-787f-4e0b-bb74-c306650cc78d
2025-04-24 10:05:40,619 - DEBUG - Requesting: http://10.0.0.254:8082/project/221bdec3-1b0b-4543-867f-2d83fa1a7574
2025-04-24 10:05:40,691 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,701 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,710 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a90f68ff-e670-44cd-ae1d-4550670cc860
2025-04-24 10:05:40,715 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a90f68ff-e670-44cd-ae1d-4550670cc860
2025-04-24 10:05:40,721 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2c0a8118-56a9-4b41-82ea-c0afd5b24b10
2025-04-24 10:05:40,726 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 10:05:40,726 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a90f68ff-e670-44cd-ae1d-4550670cc860
2025-04-24 10:05:40,746 - INFO - Verified VN network id 8 for VN df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,747 - INFO - Verifications in API Server for VN ctest-vn-36499820 passed
2025-04-24 10:05:40,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a90f68ff-e670-44cd-ae1d-4550670cc860
2025-04-24 10:05:40,760 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a90f68ff-e670-44cd-ae1d-4550670cc860
2025-04-24 10:05:40,765 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2c0a8118-56a9-4b41-82ea-c0afd5b24b10
2025-04-24 10:05:40,774 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18081096', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16110394096403105772', 'uuid-lslong': '9453208553983901640'}, 'enable': 'true', 'created': '2025-04-24T10:05:38', 'last-modified': '2025-04-24T10:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.836688'}
2025-04-24 10:05:40,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 10:05:40,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36499820 passed
2025-04-24 10:05:40,780 - DEBUG - ====Verifying policy data for ctest-vn-36499820 in API_Server ======
2025-04-24 10:05:40,780 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 10:05:40,784 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ce61e4f-787f-4e0b-bb74-c306650cc78d
2025-04-24 10:05:40,792 - DEBUG - Requesting: http://10.0.0.254:8082/project/221bdec3-1b0b-4543-867f-2d83fa1a7574
2025-04-24 10:05:40,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/df939e12-fba8-47ec-8330-8b1837e4ffc8
2025-04-24 10:05:40,883 - DEBUG - ==>Verifying data for policy with id: 9b25e0d0-5b39-4440-b973-24e2f9d3f0ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-policy-allow-all-98528785']
2025-04-24 10:05:40,883 - INFO - VN ctest-vn-36499820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 10:05:40,883 - DEBUG - Verifying the vn in opserver
2025-04-24 10:05:40,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820 virtual network link through opserver 10.0.0.254
2025-04-24 10:05:40,883 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 10:05:41,139 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 10:05:41,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820?flat'}
2025-04-24 10:05:41,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-36499820 is found in opserver
2025-04-24 10:05:41,195 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 10:05:41,199 - DEBUG - VRF ids for VN ctest-vn-36499820: {}
2025-04-24 10:05:41,199 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 10:05:41,204 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ce61e4f-787f-4e0b-bb74-c306650cc78d
2025-04-24 10:05:41,213 - DEBUG - Requesting: http://10.0.0.254:8082/project/221bdec3-1b0b-4543-867f-2d83fa1a7574
2025-04-24 10:05:41,281 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,291 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2163d79-1b0d-467d-8768-0e6cf524849f
2025-04-24 10:05:41,303 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2163d79-1b0d-467d-8768-0e6cf524849f
2025-04-24 10:05:41,309 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b1ea760-8fa8-4020-88bc-27ac751574ae
2025-04-24 10:05:41,314 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 10:05:41,314 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,321 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2163d79-1b0d-467d-8768-0e6cf524849f
2025-04-24 10:05:41,335 - INFO - Verified VN network id 9 for VN 2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,335 - INFO - Verifications in API Server for VN ctest-vn-03712835 passed
2025-04-24 10:05:41,335 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,343 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2163d79-1b0d-467d-8768-0e6cf524849f
2025-04-24 10:05:41,350 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2163d79-1b0d-467d-8768-0e6cf524849f
2025-04-24 10:05:41,356 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b1ea760-8fa8-4020-88bc-27ac751574ae
2025-04-24 10:05:41,367 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-03712835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18081096', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3108801876499909112', 'uuid-lslong': '10865174350676595062'}, 'enable': 'true', 'created': '2025-04-24T10:05:39', 'last-modified': '2025-04-24T10:05:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.213953'}
2025-04-24 10:05:41,372 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 10:05:41,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03712835 passed
2025-04-24 10:05:41,372 - DEBUG - ====Verifying policy data for ctest-vn-03712835 in API_Server ======
2025-04-24 10:05:41,372 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 10:05:41,376 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ce61e4f-787f-4e0b-bb74-c306650cc78d
2025-04-24 10:05:41,385 - DEBUG - Requesting: http://10.0.0.254:8082/project/221bdec3-1b0b-4543-867f-2d83fa1a7574
2025-04-24 10:05:41,455 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b24aed5-e5d8-49f8-96c8-da817ac39176
2025-04-24 10:05:41,464 - DEBUG - ==>Verifying data for policy with id: 9b25e0d0-5b39-4440-b973-24e2f9d3f0ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-18081096', 'ctest-policy-allow-all-98528785']
2025-04-24 10:05:41,464 - INFO - VN ctest-vn-03712835 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 10:05:41,464 - DEBUG - Verifying the vn in opserver
2025-04-24 10:05:41,464 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-03712835 virtual network link through opserver 10.0.0.254
2025-04-24 10:05:41,464 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 10:05:41,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-03712835', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-03712835?flat'}
2025-04-24 10:05:41,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18081096:ctest-vn-03712835 is found in opserver
2025-04-24 10:05:41,483 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 10:05:41,488 - DEBUG - VRF ids for VN ctest-vn-03712835: {}
2025-04-24 10:05:41,537 - DEBUG - Services list from nova: [