2024-09-02 02:45:17,598 - INFO - Domain Default found not creating
2024-09-02 02:45:17,755 - INFO - Project ctest-TestBasicPolicy-37090897 not found, creating it
2024-09-02 02:45:18,234 - INFO - Created Project:ctest-TestBasicPolicy-37090897, ID : fb12f4d2-3b61-43d4-9e8a-887e210cd973
2024-09-02 02:45:21,799 - INFO - ================================================================================
2024-09-02 02:45:21,799 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-02 02:45:21,799 - 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-09-02 02:45:22,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.19': '0'}} with
2024-09-02 02:45:22,059 - INFO - Initial checks done. Running the testcase now
2024-09-02 02:45:22,059 - INFO -
2024-09-02 02:45:22,607 - DEBUG - Response for create_network : {'network': {'id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'name': 'ctest-vn-54498074', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-54498074'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:45:22,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '60b60140-c9a7-488e-907e-fb7407a2d7fe', 'name': '', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'network_id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'ip_version': 4, 'cidr': '78.119.169.192/26', 'allocation_pools': [{'start': '78.119.169.194', 'end': '78.119.169.254'}], 'gateway_ip': '78.119.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.119.169.194', 'tags': [], 'project_id': 'fb12f4d23b6143d49e8a887e210cd973'}}
2024-09-02 02:45:22,779 - INFO - Created VN ctest-vn-54498074
2024-09-02 02:45:22,834 - DEBUG - VN ctest-vn-54498074 UUID is 710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:23,168 - DEBUG - Response for create_network : {'network': {'id': '423af243-8e79-408a-a33f-17dd697f61f8', 'name': 'ctest-vn-52114148', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-52114148'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:45:23,389 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0251927-2de3-45ec-b49f-34eb80d3f61b', 'name': '', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'network_id': '423af243-8e79-408a-a33f-17dd697f61f8', 'ip_version': 4, 'cidr': '62.48.146.0/26', 'allocation_pools': [{'start': '62.48.146.2', 'end': '62.48.146.62'}], 'gateway_ip': '62.48.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.48.146.2', 'tags': [], 'project_id': 'fb12f4d23b6143d49e8a887e210cd973'}}
2024-09-02 02:45:23,407 - INFO - Created VN ctest-vn-52114148
2024-09-02 02:45:23,457 - DEBUG - VN ctest-vn-52114148 UUID is 423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:23,569 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074, 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-37090897:ctest-vn-52114148, 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-09-02 02:45:23,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'name': 'ctest-vn-54498074', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60b60140-c9a7-488e-907e-fb7407a2d7fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-54498074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']], 'subnet_ipam': [{'subnet_cidr': '78.119.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:45:24,101 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '423af243-8e79-408a-a33f-17dd697f61f8', 'name': 'ctest-vn-52114148', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0251927-2de3-45ec-b49f-34eb80d3f61b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-52114148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']], 'subnet_ipam': [{'subnet_cidr': '62.48.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:45:24,262 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-02 02:45:24,561 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-02 02:45:24,591 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b
2024-09-02 02:45:24,606 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973
2024-09-02 02:45:24,676 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,686 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,695 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366
2024-09-02 02:45:24,702 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366
2024-09-02 02:45:24,710 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1ec617c0-ef3a-440d-97f4-fbcd77bca9f5
2024-09-02 02:45:24,716 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 02:45:24,716 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,724 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366
2024-09-02 02:45:24,735 - INFO - Verified VN network id 8 for VN 710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,735 - INFO - Verifications in API Server for VN ctest-vn-54498074 passed
2024-09-02 02:45:24,735 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,743 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366
2024-09-02 02:45:24,750 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366
2024-09-02 02:45:24,756 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1ec617c0-ef3a-440d-97f4-fbcd77bca9f5
2024-09-02 02:45:24,768 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37090897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8144348507370834651', 'uuid-lslong': '9567393938147698577'}, 'enable': 'true', 'created': '2024-09-02T02:45:22', 'last-modified': '2024-09-02T02:45:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936989'}
2024-09-02 02:45:24,774 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 02:45:24,775 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54498074 passed
2024-09-02 02:45:24,775 - DEBUG - ====Verifying policy data for ctest-vn-54498074 in API_Server ======
2024-09-02 02:45:24,775 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-02 02:45:24,781 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b
2024-09-02 02:45:24,793 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973
2024-09-02 02:45:24,863 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791
2024-09-02 02:45:24,871 - DEBUG - ==>Verifying data for policy with id: 99c8f0eb-5a12-4b34-b28a-677173c1e799, fqn: ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']
2024-09-02 02:45:24,871 - INFO - VN ctest-vn-54498074 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 02:45:24,872 - DEBUG - Verifying the vn in opserver
2024-09-02 02:45:24,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 virtual network link through opserver 10.0.0.31
2024-09-02 02:45:24,872 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-02 02:45:25,166 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-02 02:45:25,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074?flat'}
2024-09-02 02:45:25,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 is found in opserver
2024-09-02 02:45:25,246 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 02:45:25,251 - DEBUG - VRF ids for VN ctest-vn-54498074: {}
2024-09-02 02:45:25,251 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-02 02:45:25,257 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b
2024-09-02 02:45:25,268 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973
2024-09-02 02:45:25,338 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,348 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,356 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7
2024-09-02 02:45:25,363 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7
2024-09-02 02:45:25,369 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/06434791-f7ff-47f6-b817-f21928757bef
2024-09-02 02:45:25,376 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 02:45:25,376 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,387 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7
2024-09-02 02:45:25,403 - INFO - Verified VN network id 9 for VN 423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,403 - INFO - Verifications in API Server for VN ctest-vn-52114148 passed
2024-09-02 02:45:25,404 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,417 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7
2024-09-02 02:45:25,426 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7
2024-09-02 02:45:25,433 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/06434791-f7ff-47f6-b817-f21928757bef
2024-09-02 02:45:25,444 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37090897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4772393127119503498', 'uuid-lslong': '11763146991440191992'}, 'enable': 'true', 'created': '2024-09-02T02:45:23', 'last-modified': '2024-09-02T02:45:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372672'}
2024-09-02 02:45:25,450 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 02:45:25,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52114148 passed
2024-09-02 02:45:25,450 - DEBUG - ====Verifying policy data for ctest-vn-52114148 in API_Server ======
2024-09-02 02:45:25,450 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-02 02:45:25,456 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b
2024-09-02 02:45:25,467 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973
2024-09-02 02:45:25,533 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8
2024-09-02 02:45:25,541 - DEBUG - ==>Verifying data for policy with id: 99c8f0eb-5a12-4b34-b28a-677173c1e799, fqn: ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']
2024-09-02 02:45:25,541 - INFO - VN ctest-vn-52114148 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 02:45:25,541 - DEBUG - Verifying the vn in opserver
2024-09-02 02:45:25,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148 virtual network link through opserver 10.0.0.31
2024-09-02 02:45:25,541 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-02 02:45:25,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148?flat'}
2024-09-02 02:45:25,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148 is found in opserver
2024-09-02 02:45:25,569 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 02:45:25,574 - DEBUG - VRF ids for VN ctest-vn-52114148: {}
2024-09-02 02:45:25,627 - DEBUG - Services list from nova: [