2025-06-18 17:50:45,497 - INFO - Domain Default found not creating
2025-06-18 17:50:45,636 - INFO - Project ctest-TestBasicPolicy-50669232 not found, creating it
2025-06-18 17:50:46,089 - INFO - Created Project:ctest-TestBasicPolicy-50669232, ID : 423531c5-99c0-4a80-b940-c506c29649be
2025-06-18 17:50:47,515 - INFO - ================================================================================
2025-06-18 17:50:47,515 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 17:50:47,515 - 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-18 17:50:47,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-06-18 17:50:47,774 - INFO - Initial checks done. Running the testcase now
2025-06-18 17:50:47,774 - INFO -
2025-06-18 17:50:48,300 - DEBUG - Response for create_network : {'network': {'id': 'b19b5b06-7927-40e5-ac3c-e87e95744422', 'name': 'ctest-vn-82558036', 'tenant_id': '423531c599c04a80b940c506c29649be', 'project_id': '423531c599c04a80b940c506c29649be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-vn-82558036'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:50:48,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b7519b0-4cd0-4dc4-9209-b0fda1bcc360', 'name': '', 'tenant_id': '423531c599c04a80b940c506c29649be', 'network_id': 'b19b5b06-7927-40e5-ac3c-e87e95744422', 'ip_version': 4, 'cidr': '183.239.173.0/26', 'allocation_pools': [{'start': '183.239.173.2', 'end': '183.239.173.62'}], 'gateway_ip': '183.239.173.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.239.173.2', 'tags': [], 'project_id': '423531c599c04a80b940c506c29649be'}}
2025-06-18 17:50:48,484 - INFO - Created VN ctest-vn-82558036
2025-06-18 17:50:48,537 - DEBUG - VN ctest-vn-82558036 UUID is b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:48,847 - DEBUG - Response for create_network : {'network': {'id': '5d782297-6d28-4502-b1a4-01eab7f95c35', 'name': 'ctest-vn-85669485', 'tenant_id': '423531c599c04a80b940c506c29649be', 'project_id': '423531c599c04a80b940c506c29649be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-vn-85669485'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:50:49,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f976772-e975-4161-96e1-515ea7e9f31f', 'name': '', 'tenant_id': '423531c599c04a80b940c506c29649be', 'network_id': '5d782297-6d28-4502-b1a4-01eab7f95c35', 'ip_version': 4, 'cidr': '32.214.165.64/26', 'allocation_pools': [{'start': '32.214.165.66', 'end': '32.214.165.126'}], 'gateway_ip': '32.214.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.214.165.66', 'tags': [], 'project_id': '423531c599c04a80b940c506c29649be'}}
2025-06-18 17:50:49,021 - INFO - Created VN ctest-vn-85669485
2025-06-18 17:50:49,072 - DEBUG - VN ctest-vn-85669485 UUID is 5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:49,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036, 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-50669232:ctest-vn-85669485, 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-18 17:50:49,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b19b5b06-7927-40e5-ac3c-e87e95744422', 'name': 'ctest-vn-82558036', 'tenant_id': '423531c599c04a80b940c506c29649be', 'project_id': '423531c599c04a80b940c506c29649be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b7519b0-4cd0-4dc4-9209-b0fda1bcc360'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-vn-82558036'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-policy-allow-all-78374587']], 'subnet_ipam': [{'subnet_cidr': '183.239.173.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:50:49,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d782297-6d28-4502-b1a4-01eab7f95c35', 'name': 'ctest-vn-85669485', 'tenant_id': '423531c599c04a80b940c506c29649be', 'project_id': '423531c599c04a80b940c506c29649be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f976772-e975-4161-96e1-515ea7e9f31f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-vn-85669485'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-policy-allow-all-78374587']], 'subnet_ipam': [{'subnet_cidr': '32.214.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 17:50:49,892 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 17:50:50,184 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 17:50:50,210 - DEBUG - Requesting: http://10.0.0.254:8082/domain/937f77a7-b4bd-4961-9df2-b39cd0335bb5
2025-06-18 17:50:50,223 - DEBUG - Requesting: http://10.0.0.254:8082/project/423531c5-99c0-4a80-b940-c506c29649be
2025-06-18 17:50:50,297 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,320 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4af352c3-d91f-4a25-863d-6fd5aee1dac1
2025-06-18 17:50:50,327 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4af352c3-d91f-4a25-863d-6fd5aee1dac1
2025-06-18 17:50:50,334 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/22a00166-bae1-4cd4-bb80-38a9461fdd02
2025-06-18 17:50:50,339 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 17:50:50,339 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,348 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4af352c3-d91f-4a25-863d-6fd5aee1dac1
2025-06-18 17:50:50,365 - INFO - Verified VN network id 7 for VN b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,365 - INFO - Verifications in API Server for VN ctest-vn-82558036 passed
2025-06-18 17:50:50,365 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4af352c3-d91f-4a25-863d-6fd5aee1dac1
2025-06-18 17:50:50,379 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4af352c3-d91f-4a25-863d-6fd5aee1dac1
2025-06-18 17:50:50,386 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/22a00166-bae1-4cd4-bb80-38a9461fdd02
2025-06-18 17:50:50,399 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50669232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12797922849463943397', 'uuid-lslong': '12411050303497192482'}, 'enable': 'true', 'created': '2025-06-18T17:50:48', 'last-modified': '2025-06-18T17:50:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939587'}
2025-06-18 17:50:50,404 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 17:50:50,404 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82558036 passed
2025-06-18 17:50:50,405 - DEBUG - ====Verifying policy data for ctest-vn-82558036 in API_Server ======
2025-06-18 17:50:50,405 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 17:50:50,410 - DEBUG - Requesting: http://10.0.0.254:8082/domain/937f77a7-b4bd-4961-9df2-b39cd0335bb5
2025-06-18 17:50:50,421 - DEBUG - Requesting: http://10.0.0.254:8082/project/423531c5-99c0-4a80-b940-c506c29649be
2025-06-18 17:50:50,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b19b5b06-7927-40e5-ac3c-e87e95744422
2025-06-18 17:50:50,494 - DEBUG - ==>Verifying data for policy with id: 0be57714-3c08-4f6f-a19f-828329a1a772, fqn: ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-policy-allow-all-78374587']
2025-06-18 17:50:50,494 - INFO - VN ctest-vn-82558036 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 17:50:50,494 - DEBUG - Verifying the vn in opserver
2025-06-18 17:50:50,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036 virtual network link through opserver 10.0.0.254
2025-06-18 17:50:50,495 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 17:50:50,783 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 17:50:50,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036?flat'}
2025-06-18 17:50:50,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-82558036 is found in opserver
2025-06-18 17:50:50,844 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 17:50:50,850 - DEBUG - VRF ids for VN ctest-vn-82558036: {}
2025-06-18 17:50:50,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 17:50:50,855 - DEBUG - Requesting: http://10.0.0.254:8082/domain/937f77a7-b4bd-4961-9df2-b39cd0335bb5
2025-06-18 17:50:50,865 - DEBUG - Requesting: http://10.0.0.254:8082/project/423531c5-99c0-4a80-b940-c506c29649be
2025-06-18 17:50:50,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:50,946 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:50,954 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49b5f2ae-6295-450f-85ec-167bcd8530e8
2025-06-18 17:50:50,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49b5f2ae-6295-450f-85ec-167bcd8530e8
2025-06-18 17:50:50,968 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4fa4819e-4b51-4714-8770-d97619efe0f2
2025-06-18 17:50:50,974 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 17:50:50,974 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:50,983 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49b5f2ae-6295-450f-85ec-167bcd8530e8
2025-06-18 17:50:50,995 - INFO - Verified VN network id 8 for VN 5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:50,996 - INFO - Verifications in API Server for VN ctest-vn-85669485 passed
2025-06-18 17:50:50,996 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:51,005 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49b5f2ae-6295-450f-85ec-167bcd8530e8
2025-06-18 17:50:51,013 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49b5f2ae-6295-450f-85ec-167bcd8530e8
2025-06-18 17:50:51,019 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4fa4819e-4b51-4714-8770-d97619efe0f2
2025-06-18 17:50:51,031 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-85669485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50669232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6735171276499338498', 'uuid-lslong': '12800358148514339893'}, 'enable': 'true', 'created': '2025-06-18T17:50:48', 'last-modified': '2025-06-18T17:50:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330966'}
2025-06-18 17:50:51,039 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 17:50:51,039 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85669485 passed
2025-06-18 17:50:51,039 - DEBUG - ====Verifying policy data for ctest-vn-85669485 in API_Server ======
2025-06-18 17:50:51,039 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 17:50:51,045 - DEBUG - Requesting: http://10.0.0.254:8082/domain/937f77a7-b4bd-4961-9df2-b39cd0335bb5
2025-06-18 17:50:51,057 - DEBUG - Requesting: http://10.0.0.254:8082/project/423531c5-99c0-4a80-b940-c506c29649be
2025-06-18 17:50:51,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d782297-6d28-4502-b1a4-01eab7f95c35
2025-06-18 17:50:51,140 - DEBUG - ==>Verifying data for policy with id: 0be57714-3c08-4f6f-a19f-828329a1a772, fqn: ['default-domain', 'ctest-TestBasicPolicy-50669232', 'ctest-policy-allow-all-78374587']
2025-06-18 17:50:51,140 - INFO - VN ctest-vn-85669485 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 17:50:51,140 - DEBUG - Verifying the vn in opserver
2025-06-18 17:50:51,140 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-85669485 virtual network link through opserver 10.0.0.254
2025-06-18 17:50:51,140 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 17:50:51,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-85669485', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-85669485?flat'}
2025-06-18 17:50:51,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50669232:ctest-vn-85669485 is found in opserver
2025-06-18 17:50:51,161 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 17:50:51,166 - DEBUG - VRF ids for VN ctest-vn-85669485: {}
2025-06-18 17:50:51,219 - DEBUG - Services list from nova: [