2024-11-07 15:40:38,826 - INFO - Domain Default found not creating
2024-11-07 15:40:39,007 - INFO - Project ctest-TestBasicPolicy-63094984 not found, creating it
2024-11-07 15:40:39,512 - INFO - Created Project:ctest-TestBasicPolicy-63094984, ID : 1252ccee-29a1-432b-bad6-32509a48a8b8
2024-11-07 15:40:41,217 - INFO - ================================================================================
2024-11-07 15:40:41,217 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 15:40:41,217 - 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-11-07 15:40:41,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with
2024-11-07 15:40:41,479 - INFO - Initial checks done. Running the testcase now
2024-11-07 15:40:41,479 - INFO -
2024-11-07 15:40:42,162 - DEBUG - Response for create_network : {'network': {'id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'name': 'ctest-vn-68862221', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-68862221'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 15:40:42,396 - DEBUG - Response for create_subnet : {'subnet': {'id': '95a33836-3989-4873-b491-1cb648d52f7d', 'name': '', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'network_id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'ip_version': 4, 'cidr': '171.1.66.192/26', 'allocation_pools': [{'start': '171.1.66.194', 'end': '171.1.66.254'}], 'gateway_ip': '171.1.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.1.66.194', 'tags': [], 'project_id': '1252ccee29a1432bbad632509a48a8b8'}}
2024-11-07 15:40:42,418 - INFO - Created VN ctest-vn-68862221
2024-11-07 15:40:42,479 - DEBUG - VN ctest-vn-68862221 UUID is 94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:42,831 - DEBUG - Response for create_network : {'network': {'id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'name': 'ctest-vn-92624202', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-92624202'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 15:40:43,034 - DEBUG - Response for create_subnet : {'subnet': {'id': '16f033d2-8588-4e6c-a5f7-59ffafcd4022', 'name': '', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'network_id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'ip_version': 4, 'cidr': '178.20.203.0/26', 'allocation_pools': [{'start': '178.20.203.2', 'end': '178.20.203.62'}], 'gateway_ip': '178.20.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.20.203.2', 'tags': [], 'project_id': '1252ccee29a1432bbad632509a48a8b8'}}
2024-11-07 15:40:43,056 - INFO - Created VN ctest-vn-92624202
2024-11-07 15:40:43,119 - DEBUG - VN ctest-vn-92624202 UUID is a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:43,255 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221, 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-63094984:ctest-vn-92624202, 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-11-07 15:40:43,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'name': 'ctest-vn-68862221', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95a33836-3989-4873-b491-1cb648d52f7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-68862221'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']], 'subnet_ipam': [{'subnet_cidr': '171.1.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 15:40:43,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'name': 'ctest-vn-92624202', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16f033d2-8588-4e6c-a5f7-59ffafcd4022'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-92624202'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']], 'subnet_ipam': [{'subnet_cidr': '178.20.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 15:40:44,051 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-07 15:40:44,386 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-07 15:40:44,420 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81
2024-11-07 15:40:44,436 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8
2024-11-07 15:40:44,521 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,538 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,554 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6
2024-11-07 15:40:44,564 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6
2024-11-07 15:40:44,575 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/1509e60c-17b1-47aa-b136-c41bd4283ea8
2024-11-07 15:40:44,584 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 15:40:44,584 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,599 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6
2024-11-07 15:40:44,621 - INFO - Verified VN network id 8 for VN 94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,622 - INFO - Verifications in API Server for VN ctest-vn-68862221 passed
2024-11-07 15:40:44,622 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,637 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6
2024-11-07 15:40:44,647 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6
2024-11-07 15:40:44,656 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/1509e60c-17b1-47aa-b136-c41bd4283ea8
2024-11-07 15:40:44,672 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63094984', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10683824087993764511', 'uuid-lslong': '12218743990010017168'}, 'enable': 'true', 'created': '2024-11-07T15:40:42', 'last-modified': '2024-11-07T15:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096695'}
2024-11-07 15:40:44,680 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 15:40:44,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68862221 passed
2024-11-07 15:40:44,681 - DEBUG - ====Verifying policy data for ctest-vn-68862221 in API_Server ======
2024-11-07 15:40:44,681 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-07 15:40:44,688 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81
2024-11-07 15:40:44,704 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8
2024-11-07 15:40:44,790 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590
2024-11-07 15:40:44,805 - DEBUG - ==>Verifying data for policy with id: 7d9d0246-7eca-4654-ae33-1c4d0a87e2ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']
2024-11-07 15:40:44,805 - INFO - VN ctest-vn-68862221 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 15:40:44,805 - DEBUG - Verifying the vn in opserver
2024-11-07 15:40:44,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221 virtual network link through opserver 10.0.0.30
2024-11-07 15:40:44,806 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-07 15:40:45,142 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-07 15:40:45,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221?flat'}
2024-11-07 15:40:45,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221 is found in opserver
2024-11-07 15:40:45,235 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 15:40:45,241 - DEBUG - VRF ids for VN ctest-vn-68862221: {}
2024-11-07 15:40:45,241 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-07 15:40:45,249 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81
2024-11-07 15:40:45,264 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8
2024-11-07 15:40:45,361 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,381 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,398 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1
2024-11-07 15:40:45,409 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1
2024-11-07 15:40:45,419 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b080a5d5-891c-4b92-bf5d-439a85b58eb6
2024-11-07 15:40:45,427 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 15:40:45,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,444 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1
2024-11-07 15:40:45,472 - INFO - Verified VN network id 9 for VN a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,473 - INFO - Verifications in API Server for VN ctest-vn-92624202 passed
2024-11-07 15:40:45,473 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,489 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1
2024-11-07 15:40:45,500 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1
2024-11-07 15:40:45,510 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b080a5d5-891c-4b92-bf5d-439a85b58eb6
2024-11-07 15:40:45,525 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63094984', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12095975811815589482', 'uuid-lslong': '13696205926073018426'}, 'enable': 'true', 'created': '2024-11-07T15:40:42', 'last-modified': '2024-11-07T15:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.696847'}
2024-11-07 15:40:45,532 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 15:40:45,532 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92624202 passed
2024-11-07 15:40:45,533 - DEBUG - ====Verifying policy data for ctest-vn-92624202 in API_Server ======
2024-11-07 15:40:45,533 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-07 15:40:45,540 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81
2024-11-07 15:40:45,555 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8
2024-11-07 15:40:45,640 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a
2024-11-07 15:40:45,656 - DEBUG - ==>Verifying data for policy with id: 7d9d0246-7eca-4654-ae33-1c4d0a87e2ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']
2024-11-07 15:40:45,656 - INFO - VN ctest-vn-92624202 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 15:40:45,656 - DEBUG - Verifying the vn in opserver
2024-11-07 15:40:45,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202 virtual network link through opserver 10.0.0.30
2024-11-07 15:40:45,656 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-07 15:40:45,669 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202?flat'}
2024-11-07 15:40:45,670 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202 is found in opserver
2024-11-07 15:40:45,683 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 15:40:45,688 - DEBUG - VRF ids for VN ctest-vn-92624202: {}
2024-11-07 15:40:45,757 - DEBUG - Services list from nova: [