2024-08-24 10:26:01,720 - INFO - Domain Default found not creating
2024-08-24 10:26:01,885 - INFO - Project ctest-TestBasicPolicy-03347845 not found, creating it
2024-08-24 10:26:02,374 - INFO - Created Project:ctest-TestBasicPolicy-03347845, ID : ce151cc1-9bd5-4085-a709-f590c4592b01
2024-08-24 10:26:03,879 - INFO - ================================================================================
2024-08-24 10:26:03,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-24 10:26:03,879 - 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-24 10:26:04,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.22': '0'}} with
2024-08-24 10:26:04,139 - INFO - Initial checks done. Running the testcase now
2024-08-24 10:26:04,139 - INFO -
2024-08-24 10:26:04,693 - DEBUG - Response for create_network : {'network': {'id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'name': 'ctest-vn-19187495', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-19187495'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 10:26:04,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f9d3221-ad79-4fc4-b56f-3d22c68576ee', 'name': '', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'network_id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'ip_version': 4, 'cidr': '45.0.158.0/26', 'allocation_pools': [{'start': '45.0.158.2', 'end': '45.0.158.62'}], 'gateway_ip': '45.0.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.0.158.2', 'tags': [], 'project_id': 'ce151cc19bd54085a709f590c4592b01'}}
2024-08-24 10:26:04,917 - INFO - Created VN ctest-vn-19187495
2024-08-24 10:26:04,966 - DEBUG - VN ctest-vn-19187495 UUID is 79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:05,257 - DEBUG - Response for create_network : {'network': {'id': '572395f3-c27d-4f61-bb25-56e83278a223', 'name': 'ctest-vn-59782633', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-59782633'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 10:26:05,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '542644b5-9f27-46d4-b55a-19f8ccee9219', 'name': '', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'network_id': '572395f3-c27d-4f61-bb25-56e83278a223', 'ip_version': 4, 'cidr': '125.222.61.0/26', 'allocation_pools': [{'start': '125.222.61.2', 'end': '125.222.61.62'}], 'gateway_ip': '125.222.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.222.61.2', 'tags': [], 'project_id': 'ce151cc19bd54085a709f590c4592b01'}}
2024-08-24 10:26:05,466 - INFO - Created VN ctest-vn-59782633
2024-08-24 10:26:05,518 - DEBUG - VN ctest-vn-59782633 UUID is 572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:05,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495, 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-03347845:ctest-vn-59782633, 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-24 10:26:05,925 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'name': 'ctest-vn-19187495', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f9d3221-ad79-4fc4-b56f-3d22c68576ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-19187495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']], 'subnet_ipam': [{'subnet_cidr': '45.0.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 10:26:06,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '572395f3-c27d-4f61-bb25-56e83278a223', 'name': 'ctest-vn-59782633', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['542644b5-9f27-46d4-b55a-19f8ccee9219'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-59782633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']], 'subnet_ipam': [{'subnet_cidr': '125.222.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 10:26:06,322 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-24 10:26:06,625 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-24 10:26:06,659 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7
2024-08-24 10:26:06,674 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01
2024-08-24 10:26:06,748 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,757 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,765 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499
2024-08-24 10:26:06,772 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499
2024-08-24 10:26:06,778 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2de90ee6-1bf9-4c78-b767-3720451f56e9
2024-08-24 10:26:06,785 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 10:26:06,785 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,792 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499
2024-08-24 10:26:06,804 - INFO - Verified VN network id 9 for VN 79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,804 - INFO - Verifications in API Server for VN ctest-vn-19187495 passed
2024-08-24 10:26:06,804 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,812 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499
2024-08-24 10:26:06,818 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499
2024-08-24 10:26:06,824 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2de90ee6-1bf9-4c78-b767-3720451f56e9
2024-08-24 10:26:06,836 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03347845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8775623091481496936', 'uuid-lslong': '12926192126341020721'}, 'enable': 'true', 'created': '2024-08-24T10:26:04', 'last-modified': '2024-08-24T10:26:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934213'}
2024-08-24 10:26:06,843 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 10:26:06,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19187495 passed
2024-08-24 10:26:06,843 - DEBUG - ====Verifying policy data for ctest-vn-19187495 in API_Server ======
2024-08-24 10:26:06,844 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-24 10:26:06,849 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7
2024-08-24 10:26:06,861 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01
2024-08-24 10:26:06,934 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31
2024-08-24 10:26:06,943 - DEBUG - ==>Verifying data for policy with id: 75b8cb96-a5d7-4c2d-9576-d6bd40879c46, fqn: ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']
2024-08-24 10:26:06,943 - INFO - VN ctest-vn-19187495 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 10:26:06,943 - DEBUG - Verifying the vn in opserver
2024-08-24 10:26:06,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495 virtual network link through opserver 10.0.0.46
2024-08-24 10:26:06,943 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-24 10:26:07,236 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-24 10:26:07,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495?flat'}
2024-08-24 10:26:07,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495 is found in opserver
2024-08-24 10:26:07,312 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 10:26:07,317 - DEBUG - VRF ids for VN ctest-vn-19187495: {}
2024-08-24 10:26:07,317 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-24 10:26:07,322 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7
2024-08-24 10:26:07,335 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01
2024-08-24 10:26:07,405 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,415 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,424 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63
2024-08-24 10:26:07,431 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63
2024-08-24 10:26:07,438 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c08085af-019d-40df-a212-8e5afacc043c
2024-08-24 10:26:07,444 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 10:26:07,444 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,453 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63
2024-08-24 10:26:07,465 - INFO - Verified VN network id 10 for VN 572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,465 - INFO - Verifications in API Server for VN ctest-vn-59782633 passed
2024-08-24 10:26:07,465 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,473 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63
2024-08-24 10:26:07,481 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63
2024-08-24 10:26:07,487 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c08085af-019d-40df-a212-8e5afacc043c
2024-08-24 10:26:07,499 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03347845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6279027179657187169', 'uuid-lslong': '13485280214509986339'}, 'enable': 'true', 'created': '2024-08-24T10:26:05', 'last-modified': '2024-08-24T10:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363440'}
2024-08-24 10:26:07,505 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 10:26:07,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59782633 passed
2024-08-24 10:26:07,506 - DEBUG - ====Verifying policy data for ctest-vn-59782633 in API_Server ======
2024-08-24 10:26:07,506 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-08-24 10:26:07,512 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7
2024-08-24 10:26:07,526 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01
2024-08-24 10:26:07,602 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223
2024-08-24 10:26:07,610 - DEBUG - ==>Verifying data for policy with id: 75b8cb96-a5d7-4c2d-9576-d6bd40879c46, fqn: ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']
2024-08-24 10:26:07,610 - INFO - VN ctest-vn-59782633 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 10:26:07,610 - DEBUG - Verifying the vn in opserver
2024-08-24 10:26:07,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633 virtual network link through opserver 10.0.0.46
2024-08-24 10:26:07,610 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-08-24 10:26:07,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633?flat'}
2024-08-24 10:26:07,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633 is found in opserver
2024-08-24 10:26:07,637 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 10:26:07,642 - DEBUG - VRF ids for VN ctest-vn-59782633: {}
2024-08-24 10:26:07,705 - DEBUG - Services list from nova: [