2024-08-23 23:17:01,158 - INFO - Domain Default found not creating
2024-08-23 23:17:02,901 - INFO - Project ctest-TestBasicPolicy-49168949 not found, creating it
2024-08-23 23:17:03,359 - INFO - Created Project:ctest-TestBasicPolicy-49168949, ID : d4f99372-3f3c-4217-94c3-a99e1c044407
2024-08-23 23:17:07,119 - INFO - ================================================================================
2024-08-23 23:17:07,119 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-23 23:17:07,119 - 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-08-23 23:17:07,382 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with
2024-08-23 23:17:07,382 - INFO - Initial checks done. Running the testcase now
2024-08-23 23:17:07,382 - INFO -
2024-08-23 23:17:07,910 - DEBUG - Response for create_network : {'network': {'id': '131ff407-b3d1-4ea1-810e-0b4038a6de2b', 'name': 'ctest-vn-99993216', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'project_id': 'd4f993723f3c421794c3a99e1c044407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-vn-99993216'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 23:17:08,055 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1780f11-ec92-4b86-ba6c-0e39b837b3f0', 'name': '', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'network_id': '131ff407-b3d1-4ea1-810e-0b4038a6de2b', 'ip_version': 4, 'cidr': '105.199.116.192/26', 'allocation_pools': [{'start': '105.199.116.194', 'end': '105.199.116.254'}], 'gateway_ip': '105.199.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.199.116.194', 'tags': [], 'project_id': 'd4f993723f3c421794c3a99e1c044407'}}
2024-08-23 23:17:08,076 - INFO - Created VN ctest-vn-99993216
2024-08-23 23:17:08,128 - DEBUG - VN ctest-vn-99993216 UUID is 131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:08,410 - DEBUG - Response for create_network : {'network': {'id': 'f9e5c03d-a9e7-450b-8497-9f68907b3210', 'name': 'ctest-vn-36632581', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'project_id': 'd4f993723f3c421794c3a99e1c044407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-vn-36632581'], 'port_security_enabled': True, 'description': ''}}
2024-08-23 23:17:08,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c5c384c-d3a8-46ab-8698-c63476249f69', 'name': '', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'network_id': 'f9e5c03d-a9e7-450b-8497-9f68907b3210', 'ip_version': 4, 'cidr': '194.69.137.64/26', 'allocation_pools': [{'start': '194.69.137.66', 'end': '194.69.137.126'}], 'gateway_ip': '194.69.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.69.137.66', 'tags': [], 'project_id': 'd4f993723f3c421794c3a99e1c044407'}}
2024-08-23 23:17:08,617 - INFO - Created VN ctest-vn-36632581
2024-08-23 23:17:08,668 - DEBUG - VN ctest-vn-36632581 UUID is f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:08,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216, 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-49168949:ctest-vn-36632581, 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-08-23 23:17:09,066 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '131ff407-b3d1-4ea1-810e-0b4038a6de2b', 'name': 'ctest-vn-99993216', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'project_id': 'd4f993723f3c421794c3a99e1c044407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1780f11-ec92-4b86-ba6c-0e39b837b3f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-vn-99993216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-policy-allow-all-51478279']], 'subnet_ipam': [{'subnet_cidr': '105.199.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 23:17:09,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9e5c03d-a9e7-450b-8497-9f68907b3210', 'name': 'ctest-vn-36632581', 'tenant_id': 'd4f993723f3c421794c3a99e1c044407', 'project_id': 'd4f993723f3c421794c3a99e1c044407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c5c384c-d3a8-46ab-8698-c63476249f69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-vn-36632581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-policy-allow-all-51478279']], 'subnet_ipam': [{'subnet_cidr': '194.69.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-23 23:17:09,476 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-23 23:17:09,767 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-23 23:17:09,798 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7fddaabd-f23e-4a64-be53-340d83dcb47b
2024-08-23 23:17:09,815 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4f99372-3f3c-4217-94c3-a99e1c044407
2024-08-23 23:17:09,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:09,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:09,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7eae25c-755c-4202-9d68-a7c6af73b574
2024-08-23 23:17:09,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7eae25c-755c-4202-9d68-a7c6af73b574
2024-08-23 23:17:09,921 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4282b56a-12d8-4317-92ba-8dc370d3a4b8
2024-08-23 23:17:09,927 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 23:17:09,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:09,935 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7eae25c-755c-4202-9d68-a7c6af73b574
2024-08-23 23:17:09,948 - INFO - Verified VN network id 7 for VN 131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:09,948 - INFO - Verifications in API Server for VN ctest-vn-99993216 passed
2024-08-23 23:17:09,948 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:09,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7eae25c-755c-4202-9d68-a7c6af73b574
2024-08-23 23:17:09,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7eae25c-755c-4202-9d68-a7c6af73b574
2024-08-23 23:17:09,971 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4282b56a-12d8-4317-92ba-8dc370d3a4b8
2024-08-23 23:17:09,985 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49168949', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1378088324917448353', 'uuid-lslong': '9299382651022925355'}, 'enable': 'true', 'created': '2024-08-23T23:17:07', 'last-modified': '2024-08-23T23:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943257'}
2024-08-23 23:17:09,992 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-23 23:17:09,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99993216 passed
2024-08-23 23:17:09,992 - DEBUG - ====Verifying policy data for ctest-vn-99993216 in API_Server ======
2024-08-23 23:17:09,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-23 23:17:09,999 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7fddaabd-f23e-4a64-be53-340d83dcb47b
2024-08-23 23:17:10,011 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4f99372-3f3c-4217-94c3-a99e1c044407
2024-08-23 23:17:10,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/131ff407-b3d1-4ea1-810e-0b4038a6de2b
2024-08-23 23:17:10,085 - DEBUG - ==>Verifying data for policy with id: bbd10079-5f8c-4f51-86dc-24bf9fa91030, fqn: ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-policy-allow-all-51478279']
2024-08-23 23:17:10,085 - INFO - VN ctest-vn-99993216 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 23:17:10,085 - DEBUG - Verifying the vn in opserver
2024-08-23 23:17:10,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216 virtual network link through opserver 10.0.0.38
2024-08-23 23:17:10,085 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-23 23:17:10,376 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-23 23:17:10,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216?flat'}
2024-08-23 23:17:10,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-99993216 is found in opserver
2024-08-23 23:17:10,445 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 23:17:10,449 - DEBUG - VRF ids for VN ctest-vn-99993216: {}
2024-08-23 23:17:10,450 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-23 23:17:10,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7fddaabd-f23e-4a64-be53-340d83dcb47b
2024-08-23 23:17:10,467 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4f99372-3f3c-4217-94c3-a99e1c044407
2024-08-23 23:17:10,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,551 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/545a9148-b73d-4fc7-9e8a-0a5d68d232f7
2024-08-23 23:17:10,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/545a9148-b73d-4fc7-9e8a-0a5d68d232f7
2024-08-23 23:17:10,563 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a774729-27ab-48be-ac6b-33559229c6b0
2024-08-23 23:17:10,568 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 23:17:10,568 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,575 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/545a9148-b73d-4fc7-9e8a-0a5d68d232f7
2024-08-23 23:17:10,586 - INFO - Verified VN network id 8 for VN f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,586 - INFO - Verifications in API Server for VN ctest-vn-36632581 passed
2024-08-23 23:17:10,586 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/545a9148-b73d-4fc7-9e8a-0a5d68d232f7
2024-08-23 23:17:10,599 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/545a9148-b73d-4fc7-9e8a-0a5d68d232f7
2024-08-23 23:17:10,605 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a774729-27ab-48be-ac6b-33559229c6b0
2024-08-23 23:17:10,616 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-36632581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49168949', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18007010056186840331', 'uuid-lslong': '9554280405939204624'}, 'enable': 'true', 'created': '2024-08-23T23:17:08', 'last-modified': '2024-08-23T23:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.336779'}
2024-08-23 23:17:10,622 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-23 23:17:10,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36632581 passed
2024-08-23 23:17:10,622 - DEBUG - ====Verifying policy data for ctest-vn-36632581 in API_Server ======
2024-08-23 23:17:10,623 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-08-23 23:17:10,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7fddaabd-f23e-4a64-be53-340d83dcb47b
2024-08-23 23:17:10,638 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4f99372-3f3c-4217-94c3-a99e1c044407
2024-08-23 23:17:10,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9e5c03d-a9e7-450b-8497-9f68907b3210
2024-08-23 23:17:10,716 - DEBUG - ==>Verifying data for policy with id: bbd10079-5f8c-4f51-86dc-24bf9fa91030, fqn: ['default-domain', 'ctest-TestBasicPolicy-49168949', 'ctest-policy-allow-all-51478279']
2024-08-23 23:17:10,716 - INFO - VN ctest-vn-36632581 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-23 23:17:10,716 - DEBUG - Verifying the vn in opserver
2024-08-23 23:17:10,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-36632581 virtual network link through opserver 10.0.0.38
2024-08-23 23:17:10,716 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-08-23 23:17:10,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-36632581', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-36632581?flat'}
2024-08-23 23:17:10,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49168949:ctest-vn-36632581 is found in opserver
2024-08-23 23:17:10,737 - DEBUG - Do not have enough data to verify VN in agent
2024-08-23 23:17:10,742 - DEBUG - VRF ids for VN ctest-vn-36632581: {}
2024-08-23 23:17:10,794 - DEBUG - Services list from nova: [