2025-07-07 02:20:17,965 - INFO - Domain Default found not creating
2025-07-07 02:20:18,121 - INFO - Project ctest-TestBasicPolicy-96743811 not found, creating it
2025-07-07 02:20:18,588 - INFO - Created Project:ctest-TestBasicPolicy-96743811, ID : 41e8c374-c8be-4083-acf0-8dcfe276bf0b
2025-07-07 02:20:20,012 - INFO - ================================================================================
2025-07-07 02:20:20,012 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 02:20:20,012 - 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-07-07 02:20:20,275 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.209': '0'}} with
2025-07-07 02:20:20,275 - INFO - Initial checks done. Running the testcase now
2025-07-07 02:20:20,275 - INFO -
2025-07-07 02:20:20,816 - DEBUG - Response for create_network : {'network': {'id': '7ddaea0e-d0e1-4f38-9047-7c53cc12cba5', 'name': 'ctest-vn-17611000', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'project_id': '41e8c374c8be4083acf08dcfe276bf0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-vn-17611000'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:20:21,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '35326ade-ba78-44da-9081-dd6995d6757d', 'name': '', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'network_id': '7ddaea0e-d0e1-4f38-9047-7c53cc12cba5', 'ip_version': 4, 'cidr': '50.190.46.192/26', 'allocation_pools': [{'start': '50.190.46.194', 'end': '50.190.46.254'}], 'gateway_ip': '50.190.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.190.46.194', 'tags': [], 'project_id': '41e8c374c8be4083acf08dcfe276bf0b'}}
2025-07-07 02:20:21,059 - INFO - Created VN ctest-vn-17611000
2025-07-07 02:20:21,115 - DEBUG - VN ctest-vn-17611000 UUID is 7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:21,403 - DEBUG - Response for create_network : {'network': {'id': 'fbf6188f-ada5-448d-9dd3-9f6d53fd07ac', 'name': 'ctest-vn-73929376', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'project_id': '41e8c374c8be4083acf08dcfe276bf0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-vn-73929376'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:20:21,554 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e48140db-1490-4195-8362-c50db6fe51ea', 'name': '', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'network_id': 'fbf6188f-ada5-448d-9dd3-9f6d53fd07ac', 'ip_version': 4, 'cidr': '68.205.75.64/26', 'allocation_pools': [{'start': '68.205.75.66', 'end': '68.205.75.126'}], 'gateway_ip': '68.205.75.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.205.75.66', 'tags': [], 'project_id': '41e8c374c8be4083acf08dcfe276bf0b'}}
2025-07-07 02:20:21,572 - INFO - Created VN ctest-vn-73929376
2025-07-07 02:20:21,627 - DEBUG - VN ctest-vn-73929376 UUID is fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:21,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000, 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-96743811:ctest-vn-73929376, 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-07-07 02:20:22,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ddaea0e-d0e1-4f38-9047-7c53cc12cba5', 'name': 'ctest-vn-17611000', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'project_id': '41e8c374c8be4083acf08dcfe276bf0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35326ade-ba78-44da-9081-dd6995d6757d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-vn-17611000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-policy-allow-all-82321276']], 'subnet_ipam': [{'subnet_cidr': '50.190.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:20:22,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbf6188f-ada5-448d-9dd3-9f6d53fd07ac', 'name': 'ctest-vn-73929376', 'tenant_id': '41e8c374c8be4083acf08dcfe276bf0b', 'project_id': '41e8c374c8be4083acf08dcfe276bf0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e48140db-1490-4195-8362-c50db6fe51ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-vn-73929376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-policy-allow-all-82321276']], 'subnet_ipam': [{'subnet_cidr': '68.205.75.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:20:22,479 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-07 02:20:22,781 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-07 02:20:22,811 - DEBUG - Requesting: http://10.0.0.141:8082/domain/32c8f6d9-84e8-4391-8c14-d9f6687d3b61
2025-07-07 02:20:22,825 - DEBUG - Requesting: http://10.0.0.141:8082/project/41e8c374-c8be-4083-acf0-8dcfe276bf0b
2025-07-07 02:20:22,900 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:22,912 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:22,923 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c26bce2c-5a4c-44ff-8698-68e5762a4e71
2025-07-07 02:20:22,931 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c26bce2c-5a4c-44ff-8698-68e5762a4e71
2025-07-07 02:20:22,939 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/cd57ec95-7431-4118-9614-93450b80d024
2025-07-07 02:20:22,947 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:20:22,947 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:22,956 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c26bce2c-5a4c-44ff-8698-68e5762a4e71
2025-07-07 02:20:22,971 - INFO - Verified VN network id 7 for VN 7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:22,971 - INFO - Verifications in API Server for VN ctest-vn-17611000 passed
2025-07-07 02:20:22,971 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:22,981 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c26bce2c-5a4c-44ff-8698-68e5762a4e71
2025-07-07 02:20:22,989 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c26bce2c-5a4c-44ff-8698-68e5762a4e71
2025-07-07 02:20:22,997 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/cd57ec95-7431-4118-9614-93450b80d024
2025-07-07 02:20:23,011 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96743811', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9068818149018783544', 'uuid-lslong': '10396414964155992997'}, 'enable': 'true', 'created': '2025-07-07T02:20:20', 'last-modified': '2025-07-07T02:20:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995778'}
2025-07-07 02:20:23,018 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:20:23,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17611000 passed
2025-07-07 02:20:23,018 - DEBUG - ====Verifying policy data for ctest-vn-17611000 in API_Server ======
2025-07-07 02:20:23,018 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-07 02:20:23,025 - DEBUG - Requesting: http://10.0.0.141:8082/domain/32c8f6d9-84e8-4391-8c14-d9f6687d3b61
2025-07-07 02:20:23,037 - DEBUG - Requesting: http://10.0.0.141:8082/project/41e8c374-c8be-4083-acf0-8dcfe276bf0b
2025-07-07 02:20:23,111 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7ddaea0e-d0e1-4f38-9047-7c53cc12cba5
2025-07-07 02:20:23,121 - DEBUG - ==>Verifying data for policy with id: a4de80b0-b960-4d5a-8e4e-cb4a95cedc12, fqn: ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-policy-allow-all-82321276']
2025-07-07 02:20:23,121 - INFO - VN ctest-vn-17611000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:20:23,121 - DEBUG - Verifying the vn in opserver
2025-07-07 02:20:23,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000 virtual network link through opserver 10.0.0.141
2025-07-07 02:20:23,122 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-07 02:20:23,413 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-07 02:20:23,473 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000?flat'}
2025-07-07 02:20:23,473 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-17611000 is found in opserver
2025-07-07 02:20:23,484 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:20:23,490 - DEBUG - VRF ids for VN ctest-vn-17611000: {}
2025-07-07 02:20:23,490 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-07 02:20:23,497 - DEBUG - Requesting: http://10.0.0.141:8082/domain/32c8f6d9-84e8-4391-8c14-d9f6687d3b61
2025-07-07 02:20:23,512 - DEBUG - Requesting: http://10.0.0.141:8082/project/41e8c374-c8be-4083-acf0-8dcfe276bf0b
2025-07-07 02:20:23,586 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,599 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,610 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/57211521-b03d-46c2-979b-d750c869a997
2025-07-07 02:20:23,619 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/57211521-b03d-46c2-979b-d750c869a997
2025-07-07 02:20:23,627 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7cb3b2ce-3fed-468c-b008-f09409089630
2025-07-07 02:20:23,635 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:20:23,635 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,646 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/57211521-b03d-46c2-979b-d750c869a997
2025-07-07 02:20:23,661 - INFO - Verified VN network id 8 for VN fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,661 - INFO - Verifications in API Server for VN ctest-vn-73929376 passed
2025-07-07 02:20:23,662 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,674 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/57211521-b03d-46c2-979b-d750c869a997
2025-07-07 02:20:23,684 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/57211521-b03d-46c2-979b-d750c869a997
2025-07-07 02:20:23,693 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7cb3b2ce-3fed-468c-b008-f09409089630
2025-07-07 02:20:23,709 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-73929376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96743811', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18155725953163412621', 'uuid-lslong': '11372608775949977516'}, 'enable': 'true', 'created': '2025-07-07T02:20:21', 'last-modified': '2025-07-07T02:20:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454780'}
2025-07-07 02:20:23,717 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:20:23,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73929376 passed
2025-07-07 02:20:23,717 - DEBUG - ====Verifying policy data for ctest-vn-73929376 in API_Server ======
2025-07-07 02:20:23,717 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-07 02:20:23,724 - DEBUG - Requesting: http://10.0.0.141:8082/domain/32c8f6d9-84e8-4391-8c14-d9f6687d3b61
2025-07-07 02:20:23,739 - DEBUG - Requesting: http://10.0.0.141:8082/project/41e8c374-c8be-4083-acf0-8dcfe276bf0b
2025-07-07 02:20:23,824 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fbf6188f-ada5-448d-9dd3-9f6d53fd07ac
2025-07-07 02:20:23,837 - DEBUG - ==>Verifying data for policy with id: a4de80b0-b960-4d5a-8e4e-cb4a95cedc12, fqn: ['default-domain', 'ctest-TestBasicPolicy-96743811', 'ctest-policy-allow-all-82321276']
2025-07-07 02:20:23,837 - INFO - VN ctest-vn-73929376 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:20:23,837 - DEBUG - Verifying the vn in opserver
2025-07-07 02:20:23,837 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-73929376 virtual network link through opserver 10.0.0.141
2025-07-07 02:20:23,837 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-07 02:20:23,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-73929376', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-73929376?flat'}
2025-07-07 02:20:23,849 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96743811:ctest-vn-73929376 is found in opserver
2025-07-07 02:20:23,863 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:20:23,870 - DEBUG - VRF ids for VN ctest-vn-73929376: {}
2025-07-07 02:20:23,934 - DEBUG - Services list from nova: [