2024-10-23 13:56:09,333 - INFO - Domain Default found not creating
2024-10-23 13:56:09,552 - INFO - Project ctest-TestBasicPolicy-16415822 not found, creating it
2024-10-23 13:56:10,063 - INFO - Created Project:ctest-TestBasicPolicy-16415822, ID : 2379cb65-9a83-4c77-a85d-672378116ae4
2024-10-23 13:56:11,899 - INFO - ================================================================================
2024-10-23 13:56:11,900 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-23 13:56:11,900 - 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-10-23 13:56:12,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.5': '0'}} with
2024-10-23 13:56:12,160 - INFO - Initial checks done. Running the testcase now
2024-10-23 13:56:12,160 - INFO -
2024-10-23 13:56:12,785 - DEBUG - Response for create_network : {'network': {'id': 'fa0563fc-b9ba-47e8-84c2-9a921667c030', 'name': 'ctest-vn-17086527', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'project_id': '2379cb659a834c77a85d672378116ae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-vn-17086527'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 13:56:12,992 - DEBUG - Response for create_subnet : {'subnet': {'id': '666899c1-b723-4d25-ba84-ff1403f642f7', 'name': '', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'network_id': 'fa0563fc-b9ba-47e8-84c2-9a921667c030', 'ip_version': 4, 'cidr': '74.23.57.0/26', 'allocation_pools': [{'start': '74.23.57.2', 'end': '74.23.57.62'}], 'gateway_ip': '74.23.57.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.23.57.2', 'tags': [], 'project_id': '2379cb659a834c77a85d672378116ae4'}}
2024-10-23 13:56:13,018 - INFO - Created VN ctest-vn-17086527
2024-10-23 13:56:13,080 - DEBUG - VN ctest-vn-17086527 UUID is fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:13,437 - DEBUG - Response for create_network : {'network': {'id': '3f31a62b-0693-4fca-8dcf-d0b4eb05dced', 'name': 'ctest-vn-83961196', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'project_id': '2379cb659a834c77a85d672378116ae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-vn-83961196'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 13:56:13,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '356a75fc-3940-4992-858b-4d197e534b9c', 'name': '', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'network_id': '3f31a62b-0693-4fca-8dcf-d0b4eb05dced', 'ip_version': 4, 'cidr': '223.109.145.192/26', 'allocation_pools': [{'start': '223.109.145.194', 'end': '223.109.145.254'}], 'gateway_ip': '223.109.145.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.109.145.194', 'tags': [], 'project_id': '2379cb659a834c77a85d672378116ae4'}}
2024-10-23 13:56:13,665 - INFO - Created VN ctest-vn-83961196
2024-10-23 13:56:13,724 - DEBUG - VN ctest-vn-83961196 UUID is 3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:13,866 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527, 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-16415822:ctest-vn-83961196, 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-10-23 13:56:14,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa0563fc-b9ba-47e8-84c2-9a921667c030', 'name': 'ctest-vn-17086527', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'project_id': '2379cb659a834c77a85d672378116ae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['666899c1-b723-4d25-ba84-ff1403f642f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-vn-17086527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-policy-allow-all-63687890']], 'subnet_ipam': [{'subnet_cidr': '74.23.57.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 13:56:14,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f31a62b-0693-4fca-8dcf-d0b4eb05dced', 'name': 'ctest-vn-83961196', 'tenant_id': '2379cb659a834c77a85d672378116ae4', 'project_id': '2379cb659a834c77a85d672378116ae4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['356a75fc-3940-4992-858b-4d197e534b9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-vn-83961196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-policy-allow-all-63687890']], 'subnet_ipam': [{'subnet_cidr': '223.109.145.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 13:56:14,652 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 13:56:14,956 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 13:56:14,994 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2c9b2cc8-4d87-4657-9de6-5f24fe7aba5e
2024-10-23 13:56:15,012 - DEBUG - Requesting: http://10.0.0.35:8082/project/2379cb65-9a83-4c77-a85d-672378116ae4
2024-10-23 13:56:15,102 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,123 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,141 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/348ec2ec-43db-42ce-9e88-bcd587946a2d
2024-10-23 13:56:15,153 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/348ec2ec-43db-42ce-9e88-bcd587946a2d
2024-10-23 13:56:15,163 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/1cb9642a-0e3d-499a-a7d6-de003b192943
2024-10-23 13:56:15,173 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 13:56:15,173 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,189 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/348ec2ec-43db-42ce-9e88-bcd587946a2d
2024-10-23 13:56:15,214 - INFO - Verified VN network id 7 for VN fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,214 - INFO - Verifications in API Server for VN ctest-vn-17086527 passed
2024-10-23 13:56:15,214 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,233 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/348ec2ec-43db-42ce-9e88-bcd587946a2d
2024-10-23 13:56:15,245 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/348ec2ec-43db-42ce-9e88-bcd587946a2d
2024-10-23 13:56:15,257 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/1cb9642a-0e3d-499a-a7d6-de003b192943
2024-10-23 13:56:15,275 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16415822', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18015915821464438760', 'uuid-lslong': '9566378510720155696'}, 'enable': 'true', 'created': '2024-10-23T13:56:12', 'last-modified': '2024-10-23T13:56:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.106458'}
2024-10-23 13:56:15,285 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 13:56:15,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17086527 passed
2024-10-23 13:56:15,285 - DEBUG - ====Verifying policy data for ctest-vn-17086527 in API_Server ======
2024-10-23 13:56:15,286 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 13:56:15,294 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2c9b2cc8-4d87-4657-9de6-5f24fe7aba5e
2024-10-23 13:56:15,311 - DEBUG - Requesting: http://10.0.0.35:8082/project/2379cb65-9a83-4c77-a85d-672378116ae4
2024-10-23 13:56:15,402 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa0563fc-b9ba-47e8-84c2-9a921667c030
2024-10-23 13:56:15,419 - DEBUG - ==>Verifying data for policy with id: 4541d0f6-cef9-4900-a673-97eb957f33ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-policy-allow-all-63687890']
2024-10-23 13:56:15,419 - INFO - VN ctest-vn-17086527 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 13:56:15,419 - DEBUG - Verifying the vn in opserver
2024-10-23 13:56:15,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527 virtual network link through opserver 10.0.0.35
2024-10-23 13:56:15,419 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 13:56:15,719 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 13:56:15,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527?flat'}
2024-10-23 13:56:15,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-17086527 is found in opserver
2024-10-23 13:56:15,802 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 13:56:15,812 - DEBUG - VRF ids for VN ctest-vn-17086527: {}
2024-10-23 13:56:15,812 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 13:56:15,827 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2c9b2cc8-4d87-4657-9de6-5f24fe7aba5e
2024-10-23 13:56:15,845 - DEBUG - Requesting: http://10.0.0.35:8082/project/2379cb65-9a83-4c77-a85d-672378116ae4
2024-10-23 13:56:15,932 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:15,952 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:15,969 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a98d5135-abd1-49dc-a2dc-6ac90cb512c7
2024-10-23 13:56:15,982 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a98d5135-abd1-49dc-a2dc-6ac90cb512c7
2024-10-23 13:56:15,994 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6a26b11c-3ab3-4e52-b427-6764e8441cb7
2024-10-23 13:56:16,004 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 13:56:16,004 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:16,022 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a98d5135-abd1-49dc-a2dc-6ac90cb512c7
2024-10-23 13:56:16,046 - INFO - Verified VN network id 8 for VN 3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:16,046 - INFO - Verifications in API Server for VN ctest-vn-83961196 passed
2024-10-23 13:56:16,046 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:16,062 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a98d5135-abd1-49dc-a2dc-6ac90cb512c7
2024-10-23 13:56:16,072 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a98d5135-abd1-49dc-a2dc-6ac90cb512c7
2024-10-23 13:56:16,083 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6a26b11c-3ab3-4e52-b427-6764e8441cb7
2024-10-23 13:56:16,101 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-83961196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16415822', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4553603401972404170', 'uuid-lslong': '10218615554982665453'}, 'enable': 'true', 'created': '2024-10-23T13:56:13', 'last-modified': '2024-10-23T13:56:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.668034'}
2024-10-23 13:56:16,109 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 13:56:16,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83961196 passed
2024-10-23 13:56:16,109 - DEBUG - ====Verifying policy data for ctest-vn-83961196 in API_Server ======
2024-10-23 13:56:16,109 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 13:56:16,116 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2c9b2cc8-4d87-4657-9de6-5f24fe7aba5e
2024-10-23 13:56:16,131 - DEBUG - Requesting: http://10.0.0.35:8082/project/2379cb65-9a83-4c77-a85d-672378116ae4
2024-10-23 13:56:16,215 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/3f31a62b-0693-4fca-8dcf-d0b4eb05dced
2024-10-23 13:56:16,231 - DEBUG - ==>Verifying data for policy with id: 4541d0f6-cef9-4900-a673-97eb957f33ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-16415822', 'ctest-policy-allow-all-63687890']
2024-10-23 13:56:16,231 - INFO - VN ctest-vn-83961196 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 13:56:16,231 - DEBUG - Verifying the vn in opserver
2024-10-23 13:56:16,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-83961196 virtual network link through opserver 10.0.0.35
2024-10-23 13:56:16,231 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 13:56:16,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-83961196', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-83961196?flat'}
2024-10-23 13:56:16,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16415822:ctest-vn-83961196 is found in opserver
2024-10-23 13:56:16,264 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 13:56:16,271 - DEBUG - VRF ids for VN ctest-vn-83961196: {}
2024-10-23 13:56:16,346 - DEBUG - Services list from nova: [