2024-09-02 17:12:54,124 - INFO - Domain Default found not creating
2024-09-02 17:12:54,272 - INFO - Project ctest-TestBasicPolicy-15804701 not found, creating it
2024-09-02 17:12:54,738 - INFO - Created Project:ctest-TestBasicPolicy-15804701, ID : 7de5c7bd-2277-45b8-a571-58470d1ba33a
2024-09-02 17:12:56,424 - INFO - ================================================================================
2024-09-02 17:12:56,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-02 17:12:56,425 - 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
2024-09-02 17:12:56,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.14': '0'}} with
2024-09-02 17:12:56,706 - INFO - Initial checks done. Running the testcase now
2024-09-02 17:12:56,706 - INFO -
2024-09-02 17:12:57,401 - DEBUG - Response for create_network : {'network': {'id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'name': 'ctest-vn-31293519', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-31293519'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 17:12:57,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '68189e73-4487-48ab-a935-dc2702a24837', 'name': '', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'network_id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'ip_version': 4, 'cidr': '198.147.17.192/26', 'allocation_pools': [{'start': '198.147.17.194', 'end': '198.147.17.254'}], 'gateway_ip': '198.147.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.147.17.194', 'tags': [], 'project_id': '7de5c7bd227745b8a57158470d1ba33a'}}
2024-09-02 17:12:57,644 - INFO - Created VN ctest-vn-31293519
2024-09-02 17:12:57,707 - DEBUG - VN ctest-vn-31293519 UUID is 09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:57,995 - DEBUG - Response for create_network : {'network': {'id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'name': 'ctest-vn-48508579', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-48508579'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 17:12:58,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'faeb18eb-482e-491e-b56f-18e20dc7e8d3', 'name': '', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'network_id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'ip_version': 4, 'cidr': '93.81.168.64/26', 'allocation_pools': [{'start': '93.81.168.66', 'end': '93.81.168.126'}], 'gateway_ip': '93.81.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.81.168.66', 'tags': [], 'project_id': '7de5c7bd227745b8a57158470d1ba33a'}}
2024-09-02 17:12:58,178 - INFO - Created VN ctest-vn-48508579
2024-09-02 17:12:58,227 - DEBUG - VN ctest-vn-48508579 UUID is 463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:12:58,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519, 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-15804701:ctest-vn-48508579, 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]
2024-09-02 17:12:58,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'name': 'ctest-vn-31293519', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68189e73-4487-48ab-a935-dc2702a24837'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-31293519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']], 'subnet_ipam': [{'subnet_cidr': '198.147.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 17:12:58,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'name': 'ctest-vn-48508579', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['faeb18eb-482e-491e-b56f-18e20dc7e8d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-48508579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']], 'subnet_ipam': [{'subnet_cidr': '93.81.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 17:12:59,039 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-02 17:12:59,347 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-02 17:12:59,377 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122
2024-09-02 17:12:59,390 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a
2024-09-02 17:12:59,459 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,469 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,476 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f
2024-09-02 17:12:59,483 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f
2024-09-02 17:12:59,489 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3b79e3f5-b4cc-4cba-9a59-c57005178d11
2024-09-02 17:12:59,495 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 17:12:59,495 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,509 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f
2024-09-02 17:12:59,522 - INFO - Verified VN network id 8 for VN 09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,522 - INFO - Verifications in API Server for VN ctest-vn-31293519 passed
2024-09-02 17:12:59,522 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,530 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f
2024-09-02 17:12:59,536 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f
2024-09-02 17:12:59,543 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3b79e3f5-b4cc-4cba-9a59-c57005178d11
2024-09-02 17:12:59,555 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15804701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '694190659130574022', 'uuid-lslong': '10996740406451060122'}, 'enable': 'true', 'created': '2024-09-02T17:12:57', 'last-modified': '2024-09-02T17:12:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937779'}
2024-09-02 17:12:59,568 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 17:12:59,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31293519 passed
2024-09-02 17:12:59,569 - DEBUG - ====Verifying policy data for ctest-vn-31293519 in API_Server ======
2024-09-02 17:12:59,569 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-02 17:12:59,576 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122
2024-09-02 17:12:59,589 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a
2024-09-02 17:12:59,659 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a
2024-09-02 17:12:59,667 - DEBUG - ==>Verifying data for policy with id: 4a1c6750-fdcc-4d9e-8f44-19c952117647, fqn: ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']
2024-09-02 17:12:59,667 - INFO - VN ctest-vn-31293519 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 17:12:59,667 - DEBUG - Verifying the vn in opserver
2024-09-02 17:12:59,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519 virtual network link through opserver 10.0.0.37
2024-09-02 17:12:59,667 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-02 17:12:59,969 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-02 17:13:00,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519?flat'}
2024-09-02 17:13:00,035 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519 is found in opserver
2024-09-02 17:13:00,049 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 17:13:00,056 - DEBUG - VRF ids for VN ctest-vn-31293519: {}
2024-09-02 17:13:00,056 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-02 17:13:00,062 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122
2024-09-02 17:13:00,078 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a
2024-09-02 17:13:00,151 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,163 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,170 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec
2024-09-02 17:13:00,177 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec
2024-09-02 17:13:00,183 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/092d7e8c-55cb-4630-beb6-544ba7a318e6
2024-09-02 17:13:00,190 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 17:13:00,190 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,197 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec
2024-09-02 17:13:00,212 - INFO - Verified VN network id 9 for VN 463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,212 - INFO - Verifications in API Server for VN ctest-vn-48508579 passed
2024-09-02 17:13:00,212 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,219 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec
2024-09-02 17:13:00,226 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec
2024-09-02 17:13:00,232 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/092d7e8c-55cb-4630-beb6-544ba7a318e6
2024-09-02 17:13:00,243 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15804701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060515882757867441', 'uuid-lslong': '10519074252177382692'}, 'enable': 'true', 'created': '2024-09-02T17:12:57', 'last-modified': '2024-09-02T17:12:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397049'}
2024-09-02 17:13:00,249 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 17:13:00,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48508579 passed
2024-09-02 17:13:00,249 - DEBUG - ====Verifying policy data for ctest-vn-48508579 in API_Server ======
2024-09-02 17:13:00,249 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-02 17:13:00,256 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122
2024-09-02 17:13:00,271 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a
2024-09-02 17:13:00,361 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24
2024-09-02 17:13:00,369 - DEBUG - ==>Verifying data for policy with id: 4a1c6750-fdcc-4d9e-8f44-19c952117647, fqn: ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']
2024-09-02 17:13:00,369 - INFO - VN ctest-vn-48508579 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 17:13:00,369 - DEBUG - Verifying the vn in opserver
2024-09-02 17:13:00,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579 virtual network link through opserver 10.0.0.37
2024-09-02 17:13:00,369 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-02 17:13:00,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579?flat'}
2024-09-02 17:13:00,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579 is found in opserver
2024-09-02 17:13:00,393 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 17:13:00,399 - DEBUG - VRF ids for VN ctest-vn-48508579: {}
2024-09-02 17:13:00,456 - DEBUG - Services list from nova: [