2025-06-19 14:32:50,959 - INFO - Domain Default found not creating
2025-06-19 14:32:51,105 - INFO - Project ctest-TestBasicPolicy-19566197 not found, creating it
2025-06-19 14:32:51,565 - INFO - Created Project:ctest-TestBasicPolicy-19566197, ID : 938a7af5-a63a-40dd-adbc-653cee36c04a
2025-06-19 14:32:53,129 - INFO - ================================================================================
2025-06-19 14:32:53,129 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 14:32:53,129 - 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-19 14:32:53,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-19 14:32:53,386 - INFO - Initial checks done. Running the testcase now
2025-06-19 14:32:53,386 - INFO -
2025-06-19 14:32:53,998 - DEBUG - Response for create_network : {'network': {'id': 'f29c4075-3cea-4d3c-b2cd-c731fd56f919', 'name': 'ctest-vn-02790302', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'project_id': '938a7af5a63a40ddadbc653cee36c04a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-vn-02790302'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:32:54,180 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc82cd10-a97c-4dfb-afbb-98c715460881', 'name': '', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'network_id': 'f29c4075-3cea-4d3c-b2cd-c731fd56f919', 'ip_version': 4, 'cidr': '35.191.0.192/26', 'allocation_pools': [{'start': '35.191.0.194', 'end': '35.191.0.254'}], 'gateway_ip': '35.191.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.191.0.194', 'tags': [], 'project_id': '938a7af5a63a40ddadbc653cee36c04a'}}
2025-06-19 14:32:54,199 - INFO - Created VN ctest-vn-02790302
2025-06-19 14:32:54,251 - DEBUG - VN ctest-vn-02790302 UUID is f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:54,573 - DEBUG - Response for create_network : {'network': {'id': 'a499f7ff-ea55-438a-b54f-02a1d3ad6c1e', 'name': 'ctest-vn-77469525', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'project_id': '938a7af5a63a40ddadbc653cee36c04a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-vn-77469525'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:32:54,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '95986db1-891b-4d22-91e3-b7d1e7b131a0', 'name': '', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'network_id': 'a499f7ff-ea55-438a-b54f-02a1d3ad6c1e', 'ip_version': 4, 'cidr': '165.18.137.0/26', 'allocation_pools': [{'start': '165.18.137.2', 'end': '165.18.137.62'}], 'gateway_ip': '165.18.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.18.137.2', 'tags': [], 'project_id': '938a7af5a63a40ddadbc653cee36c04a'}}
2025-06-19 14:32:54,785 - INFO - Created VN ctest-vn-77469525
2025-06-19 14:32:54,839 - DEBUG - VN ctest-vn-77469525 UUID is a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:54,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302, 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-19566197:ctest-vn-77469525, 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-19 14:32:55,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f29c4075-3cea-4d3c-b2cd-c731fd56f919', 'name': 'ctest-vn-02790302', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'project_id': '938a7af5a63a40ddadbc653cee36c04a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc82cd10-a97c-4dfb-afbb-98c715460881'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-vn-02790302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-policy-allow-all-43955914']], 'subnet_ipam': [{'subnet_cidr': '35.191.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:32:55,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a499f7ff-ea55-438a-b54f-02a1d3ad6c1e', 'name': 'ctest-vn-77469525', 'tenant_id': '938a7af5a63a40ddadbc653cee36c04a', 'project_id': '938a7af5a63a40ddadbc653cee36c04a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95986db1-891b-4d22-91e3-b7d1e7b131a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-vn-77469525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-policy-allow-all-43955914']], 'subnet_ipam': [{'subnet_cidr': '165.18.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:32:55,687 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 14:32:56,030 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 14:32:56,058 - DEBUG - Requesting: http://10.0.0.38:8082/domain/408fa638-d3b0-456a-b9d0-416ce21a7ae4
2025-06-19 14:32:56,074 - DEBUG - Requesting: http://10.0.0.38:8082/project/938a7af5-a63a-40dd-adbc-653cee36c04a
2025-06-19 14:32:56,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,170 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/715a9b71-099a-4c97-aa90-c20e8aa5a182
2025-06-19 14:32:56,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/715a9b71-099a-4c97-aa90-c20e8aa5a182
2025-06-19 14:32:56,196 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f6d11cb2-df2b-45c2-8697-0ab3904fe196
2025-06-19 14:32:56,209 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 14:32:56,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/715a9b71-099a-4c97-aa90-c20e8aa5a182
2025-06-19 14:32:56,235 - INFO - Verified VN network id 8 for VN f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,235 - INFO - Verifications in API Server for VN ctest-vn-02790302 passed
2025-06-19 14:32:56,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,245 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/715a9b71-099a-4c97-aa90-c20e8aa5a182
2025-06-19 14:32:56,252 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/715a9b71-099a-4c97-aa90-c20e8aa5a182
2025-06-19 14:32:56,260 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f6d11cb2-df2b-45c2-8697-0ab3904fe196
2025-06-19 14:32:56,273 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19566197', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17481918725822762300', 'uuid-lslong': '12884173126494517529'}, 'enable': 'true', 'created': '2025-06-19T14:32:53', 'last-modified': '2025-06-19T14:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035542'}
2025-06-19 14:32:56,280 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 14:32:56,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02790302 passed
2025-06-19 14:32:56,280 - DEBUG - ====Verifying policy data for ctest-vn-02790302 in API_Server ======
2025-06-19 14:32:56,280 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 14:32:56,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/408fa638-d3b0-456a-b9d0-416ce21a7ae4
2025-06-19 14:32:56,300 - DEBUG - Requesting: http://10.0.0.38:8082/project/938a7af5-a63a-40dd-adbc-653cee36c04a
2025-06-19 14:32:56,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f29c4075-3cea-4d3c-b2cd-c731fd56f919
2025-06-19 14:32:56,383 - DEBUG - ==>Verifying data for policy with id: d416dee6-6efc-4ce3-bc20-3ceff0d0aff8, fqn: ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-policy-allow-all-43955914']
2025-06-19 14:32:56,383 - INFO - VN ctest-vn-02790302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 14:32:56,383 - DEBUG - Verifying the vn in opserver
2025-06-19 14:32:56,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302 virtual network link through opserver 10.0.0.38
2025-06-19 14:32:56,384 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 14:32:56,729 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 14:32:56,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302?flat'}
2025-06-19 14:32:56,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-02790302 is found in opserver
2025-06-19 14:32:56,796 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 14:32:56,801 - DEBUG - VRF ids for VN ctest-vn-02790302: {}
2025-06-19 14:32:56,802 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 14:32:56,808 - DEBUG - Requesting: http://10.0.0.38:8082/domain/408fa638-d3b0-456a-b9d0-416ce21a7ae4
2025-06-19 14:32:56,820 - DEBUG - Requesting: http://10.0.0.38:8082/project/938a7af5-a63a-40dd-adbc-653cee36c04a
2025-06-19 14:32:56,890 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:56,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:56,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c9c0e63-792c-420c-8971-cb41c9d28b51
2025-06-19 14:32:56,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c9c0e63-792c-420c-8971-cb41c9d28b51
2025-06-19 14:32:56,927 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1d19171-1369-4e85-8da6-74474f05d654
2025-06-19 14:32:56,934 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 14:32:56,934 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:56,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c9c0e63-792c-420c-8971-cb41c9d28b51
2025-06-19 14:32:56,957 - INFO - Verified VN network id 9 for VN a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:56,957 - INFO - Verifications in API Server for VN ctest-vn-77469525 passed
2025-06-19 14:32:56,957 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:56,967 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c9c0e63-792c-420c-8971-cb41c9d28b51
2025-06-19 14:32:56,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c9c0e63-792c-420c-8971-cb41c9d28b51
2025-06-19 14:32:56,982 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1d19171-1369-4e85-8da6-74474f05d654
2025-06-19 14:32:56,994 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-77469525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19566197', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11860783772177089418', 'uuid-lslong': '13064663938089446430'}, 'enable': 'true', 'created': '2025-06-19T14:32:54', 'last-modified': '2025-06-19T14:32:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528003'}
2025-06-19 14:32:57,001 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 14:32:57,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77469525 passed
2025-06-19 14:32:57,001 - DEBUG - ====Verifying policy data for ctest-vn-77469525 in API_Server ======
2025-06-19 14:32:57,002 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 14:32:57,007 - DEBUG - Requesting: http://10.0.0.38:8082/domain/408fa638-d3b0-456a-b9d0-416ce21a7ae4
2025-06-19 14:32:57,020 - DEBUG - Requesting: http://10.0.0.38:8082/project/938a7af5-a63a-40dd-adbc-653cee36c04a
2025-06-19 14:32:57,091 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a499f7ff-ea55-438a-b54f-02a1d3ad6c1e
2025-06-19 14:32:57,102 - DEBUG - ==>Verifying data for policy with id: d416dee6-6efc-4ce3-bc20-3ceff0d0aff8, fqn: ['default-domain', 'ctest-TestBasicPolicy-19566197', 'ctest-policy-allow-all-43955914']
2025-06-19 14:32:57,102 - INFO - VN ctest-vn-77469525 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 14:32:57,102 - DEBUG - Verifying the vn in opserver
2025-06-19 14:32:57,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-77469525 virtual network link through opserver 10.0.0.38
2025-06-19 14:32:57,102 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 14:32:57,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-77469525', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-77469525?flat'}
2025-06-19 14:32:57,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19566197:ctest-vn-77469525 is found in opserver
2025-06-19 14:32:57,126 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 14:32:57,132 - DEBUG - VRF ids for VN ctest-vn-77469525: {}
2025-06-19 14:32:57,186 - DEBUG - Services list from nova: [