2025-04-14 20:41:01,766 - INFO - Domain Default found not creating
2025-04-14 20:41:02,099 - INFO - Project ctest-TestBasicPolicy-90062454 not found, creating it
2025-04-14 20:41:02,534 - INFO - Created Project:ctest-TestBasicPolicy-90062454, ID : 836c81f3-c23c-4ab2-ae26-a8703623740a
2025-04-14 20:41:04,005 - INFO - ================================================================================
2025-04-14 20:41:04,005 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 20:41:04,006 - 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-14 20:41:04,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-14 20:41:04,260 - INFO - Initial checks done. Running the testcase now
2025-04-14 20:41:04,260 - INFO -
2025-04-14 20:41:04,849 - DEBUG - Response for create_network : {'network': {'id': 'b1949255-1f16-432c-999c-e461b727aef4', 'name': 'ctest-vn-05917755', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-05917755'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 20:41:05,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb4bf56f-428c-4c96-8613-60421caca0d9', 'name': '', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'network_id': 'b1949255-1f16-432c-999c-e461b727aef4', 'ip_version': 4, 'cidr': '21.31.46.128/26', 'allocation_pools': [{'start': '21.31.46.130', 'end': '21.31.46.190'}], 'gateway_ip': '21.31.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.31.46.130', 'tags': [], 'project_id': '836c81f3c23c4ab2ae26a8703623740a'}}
2025-04-14 20:41:05,085 - INFO - Created VN ctest-vn-05917755
2025-04-14 20:41:05,137 - DEBUG - VN ctest-vn-05917755 UUID is b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:05,456 - DEBUG - Response for create_network : {'network': {'id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'name': 'ctest-vn-53448820', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-53448820'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 20:41:05,663 - DEBUG - Response for create_subnet : {'subnet': {'id': '76857c4b-7d65-489c-a76d-e311f412d0ae', 'name': '', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'network_id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'ip_version': 4, 'cidr': '148.255.93.64/26', 'allocation_pools': [{'start': '148.255.93.66', 'end': '148.255.93.126'}], 'gateway_ip': '148.255.93.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.255.93.66', 'tags': [], 'project_id': '836c81f3c23c4ab2ae26a8703623740a'}}
2025-04-14 20:41:05,683 - INFO - Created VN ctest-vn-53448820
2025-04-14 20:41:05,737 - DEBUG - VN ctest-vn-53448820 UUID is 8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:05,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755, 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-90062454:ctest-vn-53448820, 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-14 20:41:06,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1949255-1f16-432c-999c-e461b727aef4', 'name': 'ctest-vn-05917755', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb4bf56f-428c-4c96-8613-60421caca0d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-05917755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']], 'subnet_ipam': [{'subnet_cidr': '21.31.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 20:41:06,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'name': 'ctest-vn-53448820', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76857c4b-7d65-489c-a76d-e311f412d0ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-53448820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']], 'subnet_ipam': [{'subnet_cidr': '148.255.93.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 20:41:06,637 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 20:41:06,939 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 20:41:06,975 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2
2025-04-14 20:41:06,992 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a
2025-04-14 20:41:07,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,088 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb
2025-04-14 20:41:07,108 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb
2025-04-14 20:41:07,116 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49c6859e-c4bf-48f6-9d6b-e7635bb45d27
2025-04-14 20:41:07,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 20:41:07,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,135 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb
2025-04-14 20:41:07,149 - INFO - Verified VN network id 9 for VN b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,150 - INFO - Verifications in API Server for VN ctest-vn-05917755 passed
2025-04-14 20:41:07,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb
2025-04-14 20:41:07,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb
2025-04-14 20:41:07,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49c6859e-c4bf-48f6-9d6b-e7635bb45d27
2025-04-14 20:41:07,191 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90062454', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12796013335557849900', 'uuid-lslong': '11068973092505628404'}, 'enable': 'true', 'created': '2025-04-14T20:41:04', 'last-modified': '2025-04-14T20:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998776'}
2025-04-14 20:41:07,198 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 20:41:07,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05917755 passed
2025-04-14 20:41:07,199 - DEBUG - ====Verifying policy data for ctest-vn-05917755 in API_Server ======
2025-04-14 20:41:07,199 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 20:41:07,206 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2
2025-04-14 20:41:07,219 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a
2025-04-14 20:41:07,294 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4
2025-04-14 20:41:07,304 - DEBUG - ==>Verifying data for policy with id: 23a80c33-517b-4b13-89ec-564076d02218, fqn: ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']
2025-04-14 20:41:07,304 - INFO - VN ctest-vn-05917755 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 20:41:07,305 - DEBUG - Verifying the vn in opserver
2025-04-14 20:41:07,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755 virtual network link through opserver 10.0.0.254
2025-04-14 20:41:07,305 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 20:41:07,607 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 20:41:07,668 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755?flat'}
2025-04-14 20:41:07,668 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755 is found in opserver
2025-04-14 20:41:07,684 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 20:41:07,689 - DEBUG - VRF ids for VN ctest-vn-05917755: {}
2025-04-14 20:41:07,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 20:41:07,697 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2
2025-04-14 20:41:07,710 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a
2025-04-14 20:41:07,777 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:07,788 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:07,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386
2025-04-14 20:41:07,805 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386
2025-04-14 20:41:07,813 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7167f1ed-eba0-440a-958b-77670a5eb9c2
2025-04-14 20:41:07,821 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 20:41:07,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:07,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386
2025-04-14 20:41:07,841 - INFO - Verified VN network id 10 for VN 8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:07,841 - INFO - Verifications in API Server for VN ctest-vn-53448820 passed
2025-04-14 20:41:07,842 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:07,854 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386
2025-04-14 20:41:07,863 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386
2025-04-14 20:41:07,871 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7167f1ed-eba0-440a-958b-77670a5eb9c2
2025-04-14 20:41:07,887 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90062454', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10368204913890903486', 'uuid-lslong': '9283623054918715568'}, 'enable': 'true', 'created': '2025-04-14T20:41:05', 'last-modified': '2025-04-14T20:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437675'}
2025-04-14 20:41:07,895 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 20:41:07,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53448820 passed
2025-04-14 20:41:07,895 - DEBUG - ====Verifying policy data for ctest-vn-53448820 in API_Server ======
2025-04-14 20:41:07,895 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 20:41:07,902 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2
2025-04-14 20:41:07,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a
2025-04-14 20:41:08,004 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0
2025-04-14 20:41:08,013 - DEBUG - ==>Verifying data for policy with id: 23a80c33-517b-4b13-89ec-564076d02218, fqn: ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']
2025-04-14 20:41:08,013 - INFO - VN ctest-vn-53448820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 20:41:08,013 - DEBUG - Verifying the vn in opserver
2025-04-14 20:41:08,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820 virtual network link through opserver 10.0.0.254
2025-04-14 20:41:08,013 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 20:41:08,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820?flat'}
2025-04-14 20:41:08,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820 is found in opserver
2025-04-14 20:41:08,036 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 20:41:08,043 - DEBUG - VRF ids for VN ctest-vn-53448820: {}
2025-04-14 20:41:08,108 - DEBUG - Services list from nova: [