2024-11-13 12:56:15,301 - INFO - Domain Default found not creating
2024-11-13 12:56:15,502 - INFO - Project ctest-TestBasicPolicy-17634623 not found, creating it
2024-11-13 12:56:16,057 - INFO - Created Project:ctest-TestBasicPolicy-17634623, ID : 92891485-16d8-4621-ad18-97603e4f9071
2024-11-13 12:56:17,565 - INFO - ================================================================================
2024-11-13 12:56:17,565 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 12:56:17,565 - 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-13 12:56:17,830 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.14': '0'}} with
2024-11-13 12:56:17,830 - INFO - Initial checks done. Running the testcase now
2024-11-13 12:56:17,830 - INFO -
2024-11-13 12:56:18,487 - DEBUG - Response for create_network : {'network': {'id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'name': 'ctest-vn-66274815', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-66274815'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 12:56:18,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '94ca226d-edc6-45b6-8897-053e4dc57611', 'name': '', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'network_id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'ip_version': 4, 'cidr': '79.150.209.192/26', 'allocation_pools': [{'start': '79.150.209.194', 'end': '79.150.209.254'}], 'gateway_ip': '79.150.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.150.209.194', 'tags': [], 'project_id': '9289148516d84621ad1897603e4f9071'}}
2024-11-13 12:56:18,756 - INFO - Created VN ctest-vn-66274815
2024-11-13 12:56:18,816 - DEBUG - VN ctest-vn-66274815 UUID is 26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:19,217 - DEBUG - Response for create_network : {'network': {'id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'name': 'ctest-vn-33624697', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-33624697'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 12:56:19,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef833fbd-0dd4-4ae1-a3c5-8994fe7c7f06', 'name': '', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'network_id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'ip_version': 4, 'cidr': '85.238.73.64/26', 'allocation_pools': [{'start': '85.238.73.66', 'end': '85.238.73.126'}], 'gateway_ip': '85.238.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.238.73.66', 'tags': [], 'project_id': '9289148516d84621ad1897603e4f9071'}}
2024-11-13 12:56:19,475 - INFO - Created VN ctest-vn-33624697
2024-11-13 12:56:19,536 - DEBUG - VN ctest-vn-33624697 UUID is 927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:19,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815, 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-17634623:ctest-vn-33624697, 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-13 12:56:20,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'name': 'ctest-vn-66274815', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94ca226d-edc6-45b6-8897-053e4dc57611'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-66274815'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']], 'subnet_ipam': [{'subnet_cidr': '79.150.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 12:56:20,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'name': 'ctest-vn-33624697', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef833fbd-0dd4-4ae1-a3c5-8994fe7c7f06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-33624697'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']], 'subnet_ipam': [{'subnet_cidr': '85.238.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 12:56:20,468 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-13 12:56:20,781 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-13 12:56:20,814 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517
2024-11-13 12:56:20,833 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071
2024-11-13 12:56:20,928 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:20,947 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:20,963 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a
2024-11-13 12:56:20,973 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a
2024-11-13 12:56:20,983 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7d42605c-21f5-4c5a-99e5-44653ee25069
2024-11-13 12:56:20,991 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 12:56:20,991 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:21,006 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a
2024-11-13 12:56:21,027 - INFO - Verified VN network id 8 for VN 26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:21,028 - INFO - Verifications in API Server for VN ctest-vn-66274815 passed
2024-11-13 12:56:21,028 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:21,043 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a
2024-11-13 12:56:21,053 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a
2024-11-13 12:56:21,063 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7d42605c-21f5-4c5a-99e5-44653ee25069
2024-11-13 12:56:21,077 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17634623', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2790261077902707646', 'uuid-lslong': '9322781714496164509'}, 'enable': 'true', 'created': '2024-11-13T12:56:18', 'last-modified': '2024-11-13T12:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074586'}
2024-11-13 12:56:21,084 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 12:56:21,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66274815 passed
2024-11-13 12:56:21,085 - DEBUG - ====Verifying policy data for ctest-vn-66274815 in API_Server ======
2024-11-13 12:56:21,085 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-13 12:56:21,091 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517
2024-11-13 12:56:21,106 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071
2024-11-13 12:56:21,196 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d
2024-11-13 12:56:21,210 - DEBUG - ==>Verifying data for policy with id: 25633fc2-cfbb-4d83-a6e5-4050ffcbdce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']
2024-11-13 12:56:21,210 - INFO - VN ctest-vn-66274815 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 12:56:21,210 - DEBUG - Verifying the vn in opserver
2024-11-13 12:56:21,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815 virtual network link through opserver 10.0.0.46
2024-11-13 12:56:21,211 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-13 12:56:21,514 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-13 12:56:21,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815?flat'}
2024-11-13 12:56:21,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815 is found in opserver
2024-11-13 12:56:21,604 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 12:56:21,611 - DEBUG - VRF ids for VN ctest-vn-66274815: {}
2024-11-13 12:56:21,611 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-13 12:56:21,620 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517
2024-11-13 12:56:21,636 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071
2024-11-13 12:56:21,721 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:21,740 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:21,756 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0
2024-11-13 12:56:21,767 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0
2024-11-13 12:56:21,779 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/aaa2664d-2ea0-4ad3-8bfd-093a1f88202c
2024-11-13 12:56:21,788 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 12:56:21,788 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:21,805 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0
2024-11-13 12:56:21,830 - INFO - Verified VN network id 9 for VN 927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:21,831 - INFO - Verifications in API Server for VN ctest-vn-33624697 passed
2024-11-13 12:56:21,831 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:21,849 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0
2024-11-13 12:56:21,859 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0
2024-11-13 12:56:21,892 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/aaa2664d-2ea0-4ad3-8bfd-093a1f88202c
2024-11-13 12:56:21,908 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17634623', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10554804247398203501', 'uuid-lslong': '11463196879419261317'}, 'enable': 'true', 'created': '2024-11-13T12:56:19', 'last-modified': '2024-11-13T12:56:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.650200'}
2024-11-13 12:56:21,916 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 12:56:21,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33624697 passed
2024-11-13 12:56:21,916 - DEBUG - ====Verifying policy data for ctest-vn-33624697 in API_Server ======
2024-11-13 12:56:21,916 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-13 12:56:21,924 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517
2024-11-13 12:56:21,942 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071
2024-11-13 12:56:22,041 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185
2024-11-13 12:56:22,059 - DEBUG - ==>Verifying data for policy with id: 25633fc2-cfbb-4d83-a6e5-4050ffcbdce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']
2024-11-13 12:56:22,059 - INFO - VN ctest-vn-33624697 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 12:56:22,059 - DEBUG - Verifying the vn in opserver
2024-11-13 12:56:22,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697 virtual network link through opserver 10.0.0.46
2024-11-13 12:56:22,059 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-13 12:56:22,073 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697?flat'}
2024-11-13 12:56:22,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697 is found in opserver
2024-11-13 12:56:22,087 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 12:56:22,093 - DEBUG - VRF ids for VN ctest-vn-33624697: {}
2024-11-13 12:56:22,169 - DEBUG - Services list from nova: [