2024-11-07 17:49:19,908 - INFO - Domain Default found not creating
2024-11-07 17:49:20,082 - INFO - Project ctest-TestBasicPolicy-62707628 not found, creating it
2024-11-07 17:49:20,581 - INFO - Created Project:ctest-TestBasicPolicy-62707628, ID : 05a11799-32c5-4881-a1ed-ef1344446586
2024-11-07 17:49:22,303 - INFO - ================================================================================
2024-11-07 17:49:22,303 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 17:49:22,303 - 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 17:49:22,558 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.24': '0'}} with
2024-11-07 17:49:22,558 - INFO - Initial checks done. Running the testcase now
2024-11-07 17:49:22,558 - INFO -
2024-11-07 17:49:23,175 - DEBUG - Response for create_network : {'network': {'id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'name': 'ctest-vn-27281391', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-27281391'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 17:49:23,390 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcf94843-141e-4c9b-bdff-e1d000144bee', 'name': '', 'tenant_id': '05a1179932c54881a1edef1344446586', 'network_id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'ip_version': 4, 'cidr': '140.69.236.128/26', 'allocation_pools': [{'start': '140.69.236.130', 'end': '140.69.236.190'}], 'gateway_ip': '140.69.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.69.236.130', 'tags': [], 'project_id': '05a1179932c54881a1edef1344446586'}}
2024-11-07 17:49:23,411 - INFO - Created VN ctest-vn-27281391
2024-11-07 17:49:23,468 - DEBUG - VN ctest-vn-27281391 UUID is 7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:23,807 - DEBUG - Response for create_network : {'network': {'id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'name': 'ctest-vn-52234458', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-52234458'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 17:49:24,044 - DEBUG - Response for create_subnet : {'subnet': {'id': '64fe1d1a-4c07-40b6-b09c-72b26adde37a', 'name': '', 'tenant_id': '05a1179932c54881a1edef1344446586', 'network_id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'ip_version': 4, 'cidr': '98.22.226.128/26', 'allocation_pools': [{'start': '98.22.226.130', 'end': '98.22.226.190'}], 'gateway_ip': '98.22.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.22.226.130', 'tags': [], 'project_id': '05a1179932c54881a1edef1344446586'}}
2024-11-07 17:49:24,069 - INFO - Created VN ctest-vn-52234458
2024-11-07 17:49:24,128 - DEBUG - VN ctest-vn-52234458 UUID is 9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:24,264 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391, 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-62707628:ctest-vn-52234458, 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 17:49:24,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'name': 'ctest-vn-27281391', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcf94843-141e-4c9b-bdff-e1d000144bee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-27281391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']], 'subnet_ipam': [{'subnet_cidr': '140.69.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 17:49:24,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'name': 'ctest-vn-52234458', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64fe1d1a-4c07-40b6-b09c-72b26adde37a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-52234458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']], 'subnet_ipam': [{'subnet_cidr': '98.22.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 17:49:25,004 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-11-07 17:49:25,368 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-11-07 17:49:25,408 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d
2024-11-07 17:49:25,425 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586
2024-11-07 17:49:25,510 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,528 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,544 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c
2024-11-07 17:49:25,556 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c
2024-11-07 17:49:25,566 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d776e32-40da-4bb4-86f3-9f40edea436c
2024-11-07 17:49:25,576 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 17:49:25,576 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,592 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c
2024-11-07 17:49:25,615 - INFO - Verified VN network id 8 for VN 7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,615 - INFO - Verifications in API Server for VN ctest-vn-27281391 passed
2024-11-07 17:49:25,615 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,632 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c
2024-11-07 17:49:25,641 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c
2024-11-07 17:49:25,651 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d776e32-40da-4bb4-86f3-9f40edea436c
2024-11-07 17:49:25,665 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62707628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8821514805943289661', 'uuid-lslong': '11548679289413836319'}, 'enable': 'true', 'created': '2024-11-07T17:49:23', 'last-modified': '2024-11-07T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094975'}
2024-11-07 17:49:25,672 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 17:49:25,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27281391 passed
2024-11-07 17:49:25,672 - DEBUG - ====Verifying policy data for ctest-vn-27281391 in API_Server ======
2024-11-07 17:49:25,673 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-11-07 17:49:25,680 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d
2024-11-07 17:49:25,695 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586
2024-11-07 17:49:25,776 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f
2024-11-07 17:49:25,791 - DEBUG - ==>Verifying data for policy with id: 268ccd14-081e-4d1d-9c31-fc7b957be1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']
2024-11-07 17:49:25,792 - INFO - VN ctest-vn-27281391 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 17:49:25,792 - DEBUG - Verifying the vn in opserver
2024-11-07 17:49:25,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391 virtual network link through opserver 10.0.0.49
2024-11-07 17:49:25,792 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-11-07 17:49:26,137 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-11-07 17:49:26,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391?flat'}
2024-11-07 17:49:26,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391 is found in opserver
2024-11-07 17:49:26,217 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 17:49:26,225 - DEBUG - VRF ids for VN ctest-vn-27281391: {}
2024-11-07 17:49:26,225 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-11-07 17:49:26,232 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d
2024-11-07 17:49:26,248 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586
2024-11-07 17:49:26,331 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,350 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,365 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208
2024-11-07 17:49:26,375 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208
2024-11-07 17:49:26,384 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4f4eb52e-e987-437a-ad16-48ee2b7765d7
2024-11-07 17:49:26,394 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 17:49:26,394 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,414 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208
2024-11-07 17:49:26,440 - INFO - Verified VN network id 9 for VN 9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,441 - INFO - Verifications in API Server for VN ctest-vn-52234458 passed
2024-11-07 17:49:26,441 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,460 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208
2024-11-07 17:49:26,473 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208
2024-11-07 17:49:26,483 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4f4eb52e-e987-437a-ad16-48ee2b7765d7
2024-11-07 17:49:26,500 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62707628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11191157109218691156', 'uuid-lslong': '13153667339286661188'}, 'enable': 'true', 'created': '2024-11-07T17:49:23', 'last-modified': '2024-11-07T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.672097'}
2024-11-07 17:49:26,507 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 17:49:26,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52234458 passed
2024-11-07 17:49:26,507 - DEBUG - ====Verifying policy data for ctest-vn-52234458 in API_Server ======
2024-11-07 17:49:26,507 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-11-07 17:49:26,514 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d
2024-11-07 17:49:26,529 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586
2024-11-07 17:49:26,617 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844
2024-11-07 17:49:26,633 - DEBUG - ==>Verifying data for policy with id: 268ccd14-081e-4d1d-9c31-fc7b957be1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']
2024-11-07 17:49:26,633 - INFO - VN ctest-vn-52234458 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 17:49:26,634 - DEBUG - Verifying the vn in opserver
2024-11-07 17:49:26,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458 virtual network link through opserver 10.0.0.49
2024-11-07 17:49:26,634 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-11-07 17:49:26,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458?flat'}
2024-11-07 17:49:26,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458 is found in opserver
2024-11-07 17:49:26,658 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 17:49:26,663 - DEBUG - VRF ids for VN ctest-vn-52234458: {}
2024-11-07 17:49:26,723 - DEBUG - Services list from nova: [