2024-12-30 02:14:20,012 - INFO - Domain Default found not creating
2024-12-30 02:14:20,152 - INFO - Project ctest-TestBasicPolicy-16422970 not found, creating it
2024-12-30 02:14:20,612 - INFO - Created Project:ctest-TestBasicPolicy-16422970, ID : dd91f80c-e39e-4817-b326-e46e18eab181
2024-12-30 02:14:21,989 - INFO - ================================================================================
2024-12-30 02:14:21,989 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-30 02:14:21,989 - 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-12-30 02:14:22,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.24': '0'}} with
2024-12-30 02:14:22,238 - INFO - Initial checks done. Running the testcase now
2024-12-30 02:14:22,238 - INFO -
2024-12-30 02:14:22,757 - DEBUG - Response for create_network : {'network': {'id': '6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae', 'name': 'ctest-vn-92613322', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'project_id': 'dd91f80ce39e4817b326e46e18eab181', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-vn-92613322'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:14:22,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '70922c56-324d-4523-b403-08ee7593dcfe', 'name': '', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'network_id': '6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae', 'ip_version': 4, 'cidr': '104.239.203.192/26', 'allocation_pools': [{'start': '104.239.203.194', 'end': '104.239.203.254'}], 'gateway_ip': '104.239.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.239.203.194', 'tags': [], 'project_id': 'dd91f80ce39e4817b326e46e18eab181'}}
2024-12-30 02:14:22,979 - INFO - Created VN ctest-vn-92613322
2024-12-30 02:14:23,028 - DEBUG - VN ctest-vn-92613322 UUID is 6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:23,332 - DEBUG - Response for create_network : {'network': {'id': '2cb699e4-d206-4b1c-8276-eb19b7e3ba89', 'name': 'ctest-vn-84080043', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'project_id': 'dd91f80ce39e4817b326e46e18eab181', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-vn-84080043'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:14:23,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '0298a8af-9112-41b8-b84e-d8330d782ecb', 'name': '', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'network_id': '2cb699e4-d206-4b1c-8276-eb19b7e3ba89', 'ip_version': 4, 'cidr': '46.200.241.0/26', 'allocation_pools': [{'start': '46.200.241.2', 'end': '46.200.241.62'}], 'gateway_ip': '46.200.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.200.241.2', 'tags': [], 'project_id': 'dd91f80ce39e4817b326e46e18eab181'}}
2024-12-30 02:14:23,530 - INFO - Created VN ctest-vn-84080043
2024-12-30 02:14:23,580 - DEBUG - VN ctest-vn-84080043 UUID is 2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:23,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322, 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-16422970:ctest-vn-84080043, 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-12-30 02:14:23,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae', 'name': 'ctest-vn-92613322', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'project_id': 'dd91f80ce39e4817b326e46e18eab181', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70922c56-324d-4523-b403-08ee7593dcfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-vn-92613322'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-policy-allow-all-79924389']], 'subnet_ipam': [{'subnet_cidr': '104.239.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:14:24,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2cb699e4-d206-4b1c-8276-eb19b7e3ba89', 'name': 'ctest-vn-84080043', 'tenant_id': 'dd91f80ce39e4817b326e46e18eab181', 'project_id': 'dd91f80ce39e4817b326e46e18eab181', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0298a8af-9112-41b8-b84e-d8330d782ecb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-vn-84080043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-policy-allow-all-79924389']], 'subnet_ipam': [{'subnet_cidr': '46.200.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:14:24,340 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-12-30 02:14:24,637 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-12-30 02:14:24,662 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9eb6c690-2dfa-4489-b11f-76c7854c1b5d
2024-12-30 02:14:24,674 - DEBUG - Requesting: http://10.0.0.45:8082/project/dd91f80c-e39e-4817-b326-e46e18eab181
2024-12-30 02:14:24,743 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,752 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,759 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f52a0ad3-91a3-49bb-8087-42413fa92523
2024-12-30 02:14:24,765 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f52a0ad3-91a3-49bb-8087-42413fa92523
2024-12-30 02:14:24,770 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/77fec8f3-c2d0-4797-a587-e14ff469a196
2024-12-30 02:14:24,775 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 02:14:24,776 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,782 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f52a0ad3-91a3-49bb-8087-42413fa92523
2024-12-30 02:14:24,791 - INFO - Verified VN network id 9 for VN 6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,792 - INFO - Verifications in API Server for VN ctest-vn-92613322 passed
2024-12-30 02:14:24,792 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,799 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f52a0ad3-91a3-49bb-8087-42413fa92523
2024-12-30 02:14:24,804 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f52a0ad3-91a3-49bb-8087-42413fa92523
2024-12-30 02:14:24,810 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/77fec8f3-c2d0-4797-a587-e14ff469a196
2024-12-30 02:14:24,820 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16422970', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7685418814891117675', 'uuid-lslong': '11954181345078501806'}, 'enable': 'true', 'created': '2024-12-30T02:14:22', 'last-modified': '2024-12-30T02:14:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.878561'}
2024-12-30 02:14:24,826 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 02:14:24,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92613322 passed
2024-12-30 02:14:24,826 - DEBUG - ====Verifying policy data for ctest-vn-92613322 in API_Server ======
2024-12-30 02:14:24,826 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-12-30 02:14:24,831 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9eb6c690-2dfa-4489-b11f-76c7854c1b5d
2024-12-30 02:14:24,842 - DEBUG - Requesting: http://10.0.0.45:8082/project/dd91f80c-e39e-4817-b326-e46e18eab181
2024-12-30 02:14:24,904 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6aa817b1-6bb0-4c6b-a5e5-c898ee0161ae
2024-12-30 02:14:24,912 - DEBUG - ==>Verifying data for policy with id: 0fb47998-cad9-4d98-855a-d39c4ec490de, fqn: ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-policy-allow-all-79924389']
2024-12-30 02:14:24,912 - INFO - VN ctest-vn-92613322 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 02:14:24,912 - DEBUG - Verifying the vn in opserver
2024-12-30 02:14:24,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322 virtual network link through opserver 10.0.0.45
2024-12-30 02:14:24,912 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-12-30 02:14:25,200 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-12-30 02:14:25,262 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322?flat'}
2024-12-30 02:14:25,262 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-92613322 is found in opserver
2024-12-30 02:14:25,275 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 02:14:25,281 - DEBUG - VRF ids for VN ctest-vn-92613322: {}
2024-12-30 02:14:25,281 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-12-30 02:14:25,288 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9eb6c690-2dfa-4489-b11f-76c7854c1b5d
2024-12-30 02:14:25,302 - DEBUG - Requesting: http://10.0.0.45:8082/project/dd91f80c-e39e-4817-b326-e46e18eab181
2024-12-30 02:14:25,371 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,382 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,390 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0e5997bc-b8ea-44d0-b9e1-e7517136603d
2024-12-30 02:14:25,396 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0e5997bc-b8ea-44d0-b9e1-e7517136603d
2024-12-30 02:14:25,402 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/1df51c8b-b948-4506-b45b-2886376eccca
2024-12-30 02:14:25,407 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 02:14:25,407 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,414 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0e5997bc-b8ea-44d0-b9e1-e7517136603d
2024-12-30 02:14:25,425 - INFO - Verified VN network id 10 for VN 2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,425 - INFO - Verifications in API Server for VN ctest-vn-84080043 passed
2024-12-30 02:14:25,425 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,432 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0e5997bc-b8ea-44d0-b9e1-e7517136603d
2024-12-30 02:14:25,438 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0e5997bc-b8ea-44d0-b9e1-e7517136603d
2024-12-30 02:14:25,443 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/1df51c8b-b948-4506-b45b-2886376eccca
2024-12-30 02:14:25,454 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-84080043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16422970', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3221931791485389596', 'uuid-lslong': '9400959767874353801'}, 'enable': 'true', 'created': '2024-12-30T02:14:23', 'last-modified': '2024-12-30T02:14:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.279880'}
2024-12-30 02:14:25,460 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 02:14:25,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84080043 passed
2024-12-30 02:14:25,460 - DEBUG - ====Verifying policy data for ctest-vn-84080043 in API_Server ======
2024-12-30 02:14:25,460 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-12-30 02:14:25,465 - DEBUG - Requesting: http://10.0.0.45:8082/domain/9eb6c690-2dfa-4489-b11f-76c7854c1b5d
2024-12-30 02:14:25,476 - DEBUG - Requesting: http://10.0.0.45:8082/project/dd91f80c-e39e-4817-b326-e46e18eab181
2024-12-30 02:14:25,541 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2cb699e4-d206-4b1c-8276-eb19b7e3ba89
2024-12-30 02:14:25,549 - DEBUG - ==>Verifying data for policy with id: 0fb47998-cad9-4d98-855a-d39c4ec490de, fqn: ['default-domain', 'ctest-TestBasicPolicy-16422970', 'ctest-policy-allow-all-79924389']
2024-12-30 02:14:25,549 - INFO - VN ctest-vn-84080043 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 02:14:25,549 - DEBUG - Verifying the vn in opserver
2024-12-30 02:14:25,549 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-84080043 virtual network link through opserver 10.0.0.45
2024-12-30 02:14:25,549 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-12-30 02:14:25,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-84080043', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-84080043?flat'}
2024-12-30 02:14:25,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16422970:ctest-vn-84080043 is found in opserver
2024-12-30 02:14:25,568 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 02:14:25,573 - DEBUG - VRF ids for VN ctest-vn-84080043: {}
2024-12-30 02:14:25,624 - DEBUG - Services list from nova: [