2024-11-08 14:29:18,199 - INFO - Domain Default found not creating
2024-11-08 14:29:18,374 - INFO - Project ctest-TestBasicPolicy-57943653 not found, creating it
2024-11-08 14:29:18,894 - INFO - Created Project:ctest-TestBasicPolicy-57943653, ID : 8ff65fd2-b20d-4764-a85f-8aedd0689336
2024-11-08 14:29:20,568 - INFO - ================================================================================
2024-11-08 14:29:20,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 14:29:20,568 - 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-08 14:29:20,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with
2024-11-08 14:29:20,828 - INFO - Initial checks done. Running the testcase now
2024-11-08 14:29:20,829 - INFO -
2024-11-08 14:29:21,465 - DEBUG - Response for create_network : {'network': {'id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'name': 'ctest-vn-71976182', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-71976182'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:29:21,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e54685-719c-44c1-8229-53a1dca35a8e', 'name': '', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'network_id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'ip_version': 4, 'cidr': '129.143.112.192/26', 'allocation_pools': [{'start': '129.143.112.194', 'end': '129.143.112.254'}], 'gateway_ip': '129.143.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.143.112.194', 'tags': [], 'project_id': '8ff65fd2b20d4764a85f8aedd0689336'}}
2024-11-08 14:29:21,755 - INFO - Created VN ctest-vn-71976182
2024-11-08 14:29:21,818 - DEBUG - VN ctest-vn-71976182 UUID is 6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:22,150 - DEBUG - Response for create_network : {'network': {'id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'name': 'ctest-vn-22972727', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-22972727'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:29:22,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d2f7ed0-a1c0-48e1-b3a7-b60c1e65998d', 'name': '', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'network_id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'ip_version': 4, 'cidr': '7.81.189.0/26', 'allocation_pools': [{'start': '7.81.189.2', 'end': '7.81.189.62'}], 'gateway_ip': '7.81.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.81.189.2', 'tags': [], 'project_id': '8ff65fd2b20d4764a85f8aedd0689336'}}
2024-11-08 14:29:22,364 - INFO - Created VN ctest-vn-22972727
2024-11-08 14:29:22,422 - DEBUG - VN ctest-vn-22972727 UUID is c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:22,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182, 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-57943653:ctest-vn-22972727, 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-08 14:29:22,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'name': 'ctest-vn-71976182', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49e54685-719c-44c1-8229-53a1dca35a8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-71976182'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']], 'subnet_ipam': [{'subnet_cidr': '129.143.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:29:23,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'name': 'ctest-vn-22972727', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d2f7ed0-a1c0-48e1-b3a7-b60c1e65998d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-22972727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']], 'subnet_ipam': [{'subnet_cidr': '7.81.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 14:29:23,390 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-08 14:29:23,740 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-08 14:29:23,773 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f
2024-11-08 14:29:23,791 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336
2024-11-08 14:29:23,886 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:23,903 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:23,917 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651
2024-11-08 14:29:23,928 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651
2024-11-08 14:29:23,937 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5dfb2daf-2fec-4e8f-a7b0-c28c16afbc18
2024-11-08 14:29:23,945 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 14:29:23,945 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:23,960 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651
2024-11-08 14:29:23,980 - INFO - Verified VN network id 8 for VN 6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:23,980 - INFO - Verifications in API Server for VN ctest-vn-71976182 passed
2024-11-08 14:29:23,980 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:23,994 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651
2024-11-08 14:29:24,002 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651
2024-11-08 14:29:24,014 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5dfb2daf-2fec-4e8f-a7b0-c28c16afbc18
2024-11-08 14:29:24,029 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57943653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7781111876922199704', 'uuid-lslong': '10087474574734958311'}, 'enable': 'true', 'created': '2024-11-08T14:29:21', 'last-modified': '2024-11-08T14:29:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.134560'}
2024-11-08 14:29:24,036 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 14:29:24,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71976182 passed
2024-11-08 14:29:24,037 - DEBUG - ====Verifying policy data for ctest-vn-71976182 in API_Server ======
2024-11-08 14:29:24,037 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-08 14:29:24,043 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f
2024-11-08 14:29:24,057 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336
2024-11-08 14:29:24,152 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7
2024-11-08 14:29:24,169 - DEBUG - ==>Verifying data for policy with id: 8794ca89-8f93-4936-88c4-425ea823dc9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']
2024-11-08 14:29:24,169 - INFO - VN ctest-vn-71976182 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 14:29:24,169 - DEBUG - Verifying the vn in opserver
2024-11-08 14:29:24,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182 virtual network link through opserver 10.0.0.34
2024-11-08 14:29:24,169 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-08 14:29:24,526 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-08 14:29:24,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182?flat'}
2024-11-08 14:29:24,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182 is found in opserver
2024-11-08 14:29:24,612 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 14:29:24,617 - DEBUG - VRF ids for VN ctest-vn-71976182: {}
2024-11-08 14:29:24,617 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-08 14:29:24,623 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f
2024-11-08 14:29:24,637 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336
2024-11-08 14:29:24,723 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:24,740 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:24,756 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1
2024-11-08 14:29:24,767 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1
2024-11-08 14:29:24,777 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/2b5910b9-4d83-4ded-9096-21ca553a6803
2024-11-08 14:29:24,785 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 14:29:24,785 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:24,802 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1
2024-11-08 14:29:24,826 - INFO - Verified VN network id 9 for VN c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:24,826 - INFO - Verifications in API Server for VN ctest-vn-22972727 passed
2024-11-08 14:29:24,826 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:24,841 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1
2024-11-08 14:29:24,851 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1
2024-11-08 14:29:24,863 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/2b5910b9-4d83-4ded-9096-21ca553a6803
2024-11-08 14:29:24,880 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57943653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13911978668521443299', 'uuid-lslong': '10438692310872104867'}, 'enable': 'true', 'created': '2024-11-08T14:29:22', 'last-modified': '2024-11-08T14:29:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.715266'}
2024-11-08 14:29:24,887 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 14:29:24,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22972727 passed
2024-11-08 14:29:24,888 - DEBUG - ====Verifying policy data for ctest-vn-22972727 in API_Server ======
2024-11-08 14:29:24,888 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-08 14:29:24,895 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f
2024-11-08 14:29:24,909 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336
2024-11-08 14:29:25,005 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3
2024-11-08 14:29:25,020 - DEBUG - ==>Verifying data for policy with id: 8794ca89-8f93-4936-88c4-425ea823dc9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']
2024-11-08 14:29:25,020 - INFO - VN ctest-vn-22972727 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 14:29:25,020 - DEBUG - Verifying the vn in opserver
2024-11-08 14:29:25,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727 virtual network link through opserver 10.0.0.34
2024-11-08 14:29:25,020 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-08 14:29:25,032 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727?flat'}
2024-11-08 14:29:25,032 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727 is found in opserver
2024-11-08 14:29:25,043 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 14:29:25,048 - DEBUG - VRF ids for VN ctest-vn-22972727: {}
2024-11-08 14:29:25,113 - DEBUG - Services list from nova: [