2025-03-27 20:27:26,666 - INFO - Domain Default found not creating
2025-03-27 20:27:26,849 - INFO - Project ctest-TestBasicPolicy-69581537 not found, creating it
2025-03-27 20:27:27,375 - INFO - Created Project:ctest-TestBasicPolicy-69581537, ID : 4648e5fa-12de-46f9-80d1-b9de1d71e30d
2025-03-27 20:27:29,013 - INFO - ================================================================================
2025-03-27 20:27:29,013 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 20:27:29,013 - 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-03-27 20:27:29,276 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with
2025-03-27 20:27:29,277 - INFO - Initial checks done. Running the testcase now
2025-03-27 20:27:29,277 - INFO -
2025-03-27 20:27:29,890 - DEBUG - Response for create_network : {'network': {'id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'name': 'ctest-vn-60162118', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-60162118'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 20:27:30,086 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3ea0acc-c1a5-4fcc-92e2-9f0eda0c5715', 'name': '', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'network_id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'ip_version': 4, 'cidr': '12.73.69.64/26', 'allocation_pools': [{'start': '12.73.69.66', 'end': '12.73.69.126'}], 'gateway_ip': '12.73.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.73.69.66', 'tags': [], 'project_id': '4648e5fa12de46f980d1b9de1d71e30d'}}
2025-03-27 20:27:30,107 - INFO - Created VN ctest-vn-60162118
2025-03-27 20:27:30,162 - DEBUG - VN ctest-vn-60162118 UUID is f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:30,471 - DEBUG - Response for create_network : {'network': {'id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'name': 'ctest-vn-12464782', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-12464782'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 20:27:30,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '460e9c16-6300-4b18-9623-0f56e6fd9c8f', 'name': '', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'network_id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'ip_version': 4, 'cidr': '63.155.234.64/26', 'allocation_pools': [{'start': '63.155.234.66', 'end': '63.155.234.126'}], 'gateway_ip': '63.155.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.155.234.66', 'tags': [], 'project_id': '4648e5fa12de46f980d1b9de1d71e30d'}}
2025-03-27 20:27:30,698 - INFO - Created VN ctest-vn-12464782
2025-03-27 20:27:30,750 - DEBUG - VN ctest-vn-12464782 UUID is 3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:30,872 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118, 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-69581537:ctest-vn-12464782, 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-03-27 20:27:31,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'name': 'ctest-vn-60162118', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3ea0acc-c1a5-4fcc-92e2-9f0eda0c5715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-60162118'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']], 'subnet_ipam': [{'subnet_cidr': '12.73.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 20:27:31,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'name': 'ctest-vn-12464782', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['460e9c16-6300-4b18-9623-0f56e6fd9c8f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-12464782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']], 'subnet_ipam': [{'subnet_cidr': '63.155.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 20:27:31,638 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-27 20:27:31,948 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-27 20:27:31,983 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1
2025-03-27 20:27:31,998 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d
2025-03-27 20:27:32,083 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,096 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,108 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920
2025-03-27 20:27:32,118 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920
2025-03-27 20:27:32,127 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b5f1549-cdd5-487a-aa69-cf41a8e29222
2025-03-27 20:27:32,135 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 20:27:32,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,148 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920
2025-03-27 20:27:32,166 - INFO - Verified VN network id 9 for VN f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,166 - INFO - Verifications in API Server for VN ctest-vn-60162118 passed
2025-03-27 20:27:32,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,179 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920
2025-03-27 20:27:32,190 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920
2025-03-27 20:27:32,201 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b5f1549-cdd5-487a-aa69-cf41a8e29222
2025-03-27 20:27:32,216 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69581537', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17368669166964328758', 'uuid-lslong': '10974941523152332743'}, 'enable': 'true', 'created': '2025-03-27T20:27:29', 'last-modified': '2025-03-27T20:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059770'}
2025-03-27 20:27:32,224 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 20:27:32,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60162118 passed
2025-03-27 20:27:32,224 - DEBUG - ====Verifying policy data for ctest-vn-60162118 in API_Server ======
2025-03-27 20:27:32,224 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-27 20:27:32,231 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1
2025-03-27 20:27:32,244 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d
2025-03-27 20:27:32,333 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7
2025-03-27 20:27:32,346 - DEBUG - ==>Verifying data for policy with id: 4d956d69-3df5-44f8-ab77-f21aafc98813, fqn: ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']
2025-03-27 20:27:32,347 - INFO - VN ctest-vn-60162118 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 20:27:32,347 - DEBUG - Verifying the vn in opserver
2025-03-27 20:27:32,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118 virtual network link through opserver 10.0.0.22
2025-03-27 20:27:32,347 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-27 20:27:32,674 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-27 20:27:32,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118?flat'}
2025-03-27 20:27:32,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118 is found in opserver
2025-03-27 20:27:32,764 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 20:27:32,770 - DEBUG - VRF ids for VN ctest-vn-60162118: {}
2025-03-27 20:27:32,770 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-27 20:27:32,776 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1
2025-03-27 20:27:32,789 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d
2025-03-27 20:27:32,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:32,877 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:32,887 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972
2025-03-27 20:27:32,895 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972
2025-03-27 20:27:32,903 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6389c67e-04ba-45c9-b21d-2f2a83ef4bfc
2025-03-27 20:27:32,911 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 20:27:32,911 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:32,923 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972
2025-03-27 20:27:32,940 - INFO - Verified VN network id 10 for VN 3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:32,940 - INFO - Verifications in API Server for VN ctest-vn-12464782 passed
2025-03-27 20:27:32,940 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:32,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972
2025-03-27 20:27:32,960 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972
2025-03-27 20:27:32,968 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6389c67e-04ba-45c9-b21d-2f2a83ef4bfc
2025-03-27 20:27:32,983 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69581537', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4255625117547644731', 'uuid-lslong': '12831681297068522355'}, 'enable': 'true', 'created': '2025-03-27T20:27:30', 'last-modified': '2025-03-27T20:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575730'}
2025-03-27 20:27:32,992 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 20:27:32,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12464782 passed
2025-03-27 20:27:32,992 - DEBUG - ====Verifying policy data for ctest-vn-12464782 in API_Server ======
2025-03-27 20:27:32,992 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-27 20:27:32,999 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1
2025-03-27 20:27:33,013 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d
2025-03-27 20:27:33,090 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73
2025-03-27 20:27:33,101 - DEBUG - ==>Verifying data for policy with id: 4d956d69-3df5-44f8-ab77-f21aafc98813, fqn: ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']
2025-03-27 20:27:33,101 - INFO - VN ctest-vn-12464782 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 20:27:33,101 - DEBUG - Verifying the vn in opserver
2025-03-27 20:27:33,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782 virtual network link through opserver 10.0.0.22
2025-03-27 20:27:33,102 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-27 20:27:33,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782?flat'}
2025-03-27 20:27:33,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782 is found in opserver
2025-03-27 20:27:33,127 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 20:27:33,132 - DEBUG - VRF ids for VN ctest-vn-12464782: {}
2025-03-27 20:27:33,196 - DEBUG - Services list from nova: [