2025-02-06 17:45:23,895 - INFO - Domain Default found not creating
2025-02-06 17:45:24,021 - INFO - Project ctest-TestBasicPolicy-71273088 not found, creating it
2025-02-06 17:45:24,449 - INFO - Created Project:ctest-TestBasicPolicy-71273088, ID : 78beadd0-409e-46db-8acd-72e6468fb6a6
2025-02-06 17:45:25,798 - INFO - ================================================================================
2025-02-06 17:45:25,798 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 17:45:25,798 - 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-02-06 17:45:26,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.5': '0'}} with
2025-02-06 17:45:26,051 - INFO - Initial checks done. Running the testcase now
2025-02-06 17:45:26,052 - INFO -
2025-02-06 17:45:26,589 - DEBUG - Response for create_network : {'network': {'id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'name': 'ctest-vn-75491327', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-75491327'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 17:45:26,767 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2a18ba9-1caa-485c-90e8-648f8767d1f6', 'name': '', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'network_id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'ip_version': 4, 'cidr': '191.46.71.128/26', 'allocation_pools': [{'start': '191.46.71.130', 'end': '191.46.71.190'}], 'gateway_ip': '191.46.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.46.71.130', 'tags': [], 'project_id': '78beadd0409e46db8acd72e6468fb6a6'}}
2025-02-06 17:45:26,784 - INFO - Created VN ctest-vn-75491327
2025-02-06 17:45:26,837 - DEBUG - VN ctest-vn-75491327 UUID is b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:27,162 - DEBUG - Response for create_network : {'network': {'id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'name': 'ctest-vn-32105757', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-32105757'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 17:45:27,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ae175e1-ee08-425a-a5ad-baf8f0e1710b', 'name': '', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'network_id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'ip_version': 4, 'cidr': '158.87.138.128/26', 'allocation_pools': [{'start': '158.87.138.130', 'end': '158.87.138.190'}], 'gateway_ip': '158.87.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.87.138.130', 'tags': [], 'project_id': '78beadd0409e46db8acd72e6468fb6a6'}}
2025-02-06 17:45:27,359 - INFO - Created VN ctest-vn-32105757
2025-02-06 17:45:27,409 - DEBUG - VN ctest-vn-32105757 UUID is 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:27,561 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327, 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-71273088:ctest-vn-32105757, 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-02-06 17:45:27,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'name': 'ctest-vn-75491327', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2a18ba9-1caa-485c-90e8-648f8767d1f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-75491327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']], 'subnet_ipam': [{'subnet_cidr': '191.46.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 17:45:28,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'name': 'ctest-vn-32105757', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ae175e1-ee08-425a-a5ad-baf8f0e1710b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-32105757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']], 'subnet_ipam': [{'subnet_cidr': '158.87.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 17:45:28,249 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 17:45:28,537 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 17:45:28,563 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83
2025-02-06 17:45:28,577 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6
2025-02-06 17:45:28,648 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,659 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,668 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791
2025-02-06 17:45:28,676 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791
2025-02-06 17:45:28,683 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f9db017-fbc6-47e0-bd32-396c5c914ef1
2025-02-06 17:45:28,689 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 17:45:28,689 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,700 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791
2025-02-06 17:45:28,715 - INFO - Verified VN network id 9 for VN b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,715 - INFO - Verifications in API Server for VN ctest-vn-75491327 passed
2025-02-06 17:45:28,715 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,724 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791
2025-02-06 17:45:28,731 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791
2025-02-06 17:45:28,738 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f9db017-fbc6-47e0-bd32-396c5c914ef1
2025-02-06 17:45:28,751 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71273088', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12733647911595888183', 'uuid-lslong': '12684296586081958020'}, 'enable': 'true', 'created': '2025-02-06T17:45:26', 'last-modified': '2025-02-06T17:45:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916167'}
2025-02-06 17:45:28,759 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 17:45:28,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75491327 passed
2025-02-06 17:45:28,759 - DEBUG - ====Verifying policy data for ctest-vn-75491327 in API_Server ======
2025-02-06 17:45:28,759 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 17:45:28,766 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83
2025-02-06 17:45:28,778 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6
2025-02-06 17:45:28,847 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884
2025-02-06 17:45:28,856 - DEBUG - ==>Verifying data for policy with id: 4374e472-f58b-497b-902d-4f5761e8417f, fqn: ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']
2025-02-06 17:45:28,856 - INFO - VN ctest-vn-75491327 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 17:45:28,856 - DEBUG - Verifying the vn in opserver
2025-02-06 17:45:28,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327 virtual network link through opserver 10.0.0.24
2025-02-06 17:45:28,856 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 17:45:29,145 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 17:45:29,196 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327?flat'}
2025-02-06 17:45:29,196 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327 is found in opserver
2025-02-06 17:45:29,207 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 17:45:29,212 - DEBUG - VRF ids for VN ctest-vn-75491327: {}
2025-02-06 17:45:29,212 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 17:45:29,218 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83
2025-02-06 17:45:29,228 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6
2025-02-06 17:45:29,306 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,318 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,327 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b
2025-02-06 17:45:29,333 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b
2025-02-06 17:45:29,340 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4761ed62-2cf6-4892-bba6-9c0c8a80faf2
2025-02-06 17:45:29,345 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 17:45:29,345 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,354 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b
2025-02-06 17:45:29,366 - INFO - Verified VN network id 10 for VN 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,366 - INFO - Verifications in API Server for VN ctest-vn-32105757 passed
2025-02-06 17:45:29,366 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,375 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b
2025-02-06 17:45:29,381 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b
2025-02-06 17:45:29,387 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4761ed62-2cf6-4892-bba6-9c0c8a80faf2
2025-02-06 17:45:29,398 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71273088', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2296477063214156414', 'uuid-lslong': '12343750527649359559'}, 'enable': 'true', 'created': '2025-02-06T17:45:27', 'last-modified': '2025-02-06T17:45:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338135'}
2025-02-06 17:45:29,404 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 17:45:29,404 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32105757 passed
2025-02-06 17:45:29,404 - DEBUG - ====Verifying policy data for ctest-vn-32105757 in API_Server ======
2025-02-06 17:45:29,404 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 17:45:29,409 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83
2025-02-06 17:45:29,420 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6
2025-02-06 17:45:29,498 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7
2025-02-06 17:45:29,508 - DEBUG - ==>Verifying data for policy with id: 4374e472-f58b-497b-902d-4f5761e8417f, fqn: ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']
2025-02-06 17:45:29,508 - INFO - VN ctest-vn-32105757 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 17:45:29,508 - DEBUG - Verifying the vn in opserver
2025-02-06 17:45:29,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757 virtual network link through opserver 10.0.0.24
2025-02-06 17:45:29,508 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 17:45:29,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757?flat'}
2025-02-06 17:45:29,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757 is found in opserver
2025-02-06 17:45:29,528 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 17:45:29,533 - DEBUG - VRF ids for VN ctest-vn-32105757: {}
2025-02-06 17:45:29,584 - DEBUG - Services list from nova: [