2024-11-07 02:33:56,023 - INFO - Domain Default found not creating
2024-11-07 02:33:56,184 - INFO - Project ctest-TestBasicPolicy-09122141 not found, creating it
2024-11-07 02:33:56,682 - INFO - Created Project:ctest-TestBasicPolicy-09122141, ID : 2c52c386-9b1a-4a1e-96ac-99b456dd7aa6
2024-11-07 02:33:58,361 - INFO - ================================================================================
2024-11-07 02:33:58,361 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 02:33:58,361 - 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 02:33:58,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.11': '0'}} with
2024-11-07 02:33:58,617 - INFO - Initial checks done. Running the testcase now
2024-11-07 02:33:58,617 - INFO -
2024-11-07 02:33:59,225 - DEBUG - Response for create_network : {'network': {'id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'name': 'ctest-vn-60251902', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-60251902'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:33:59,412 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4aa339e-6c46-4b73-ad05-d7ed23d69634', 'name': '', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'network_id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'ip_version': 4, 'cidr': '30.191.57.192/26', 'allocation_pools': [{'start': '30.191.57.194', 'end': '30.191.57.254'}], 'gateway_ip': '30.191.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.191.57.194', 'tags': [], 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6'}}
2024-11-07 02:33:59,434 - INFO - Created VN ctest-vn-60251902
2024-11-07 02:33:59,486 - DEBUG - VN ctest-vn-60251902 UUID is 5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:33:59,792 - DEBUG - Response for create_network : {'network': {'id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'name': 'ctest-vn-52240831', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-52240831'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:33:59,962 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7e54de1-0dc9-45a9-8a98-8ee9335fe124', 'name': '', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'network_id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'ip_version': 4, 'cidr': '98.71.140.64/26', 'allocation_pools': [{'start': '98.71.140.66', 'end': '98.71.140.126'}], 'gateway_ip': '98.71.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.71.140.66', 'tags': [], 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6'}}
2024-11-07 02:33:59,983 - INFO - Created VN ctest-vn-52240831
2024-11-07 02:34:00,034 - DEBUG - VN ctest-vn-52240831 UUID is f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:00,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902, 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-09122141:ctest-vn-52240831, 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 02:34:00,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'name': 'ctest-vn-60251902', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4aa339e-6c46-4b73-ad05-d7ed23d69634'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-60251902'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']], 'subnet_ipam': [{'subnet_cidr': '30.191.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:34:00,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'name': 'ctest-vn-52240831', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7e54de1-0dc9-45a9-8a98-8ee9335fe124'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-52240831'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']], 'subnet_ipam': [{'subnet_cidr': '98.71.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:34:00,858 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-07 02:34:01,197 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-07 02:34:01,231 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb
2024-11-07 02:34:01,246 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6
2024-11-07 02:34:01,325 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,336 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,345 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc
2024-11-07 02:34:01,352 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc
2024-11-07 02:34:01,360 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4ab46ee7-ddaa-4212-853b-ac430893d3c9
2024-11-07 02:34:01,366 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:34:01,366 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,374 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc
2024-11-07 02:34:01,385 - INFO - Verified VN network id 8 for VN 5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,385 - INFO - Verifications in API Server for VN ctest-vn-60251902 passed
2024-11-07 02:34:01,385 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,394 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc
2024-11-07 02:34:01,400 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc
2024-11-07 02:34:01,407 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4ab46ee7-ddaa-4212-853b-ac430893d3c9
2024-11-07 02:34:01,420 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09122141', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6449987951873379766', 'uuid-lslong': '10989905874472168436'}, 'enable': 'true', 'created': '2024-11-07T02:33:59', 'last-modified': '2024-11-07T02:34:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977451'}
2024-11-07 02:34:01,427 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:34:01,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60251902 passed
2024-11-07 02:34:01,428 - DEBUG - ====Verifying policy data for ctest-vn-60251902 in API_Server ======
2024-11-07 02:34:01,428 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-07 02:34:01,435 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb
2024-11-07 02:34:01,448 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6
2024-11-07 02:34:01,520 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4
2024-11-07 02:34:01,529 - DEBUG - ==>Verifying data for policy with id: c1d664f9-a38e-4952-a01f-a2f81fbce64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']
2024-11-07 02:34:01,529 - INFO - VN ctest-vn-60251902 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:34:01,529 - DEBUG - Verifying the vn in opserver
2024-11-07 02:34:01,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902 virtual network link through opserver 10.0.0.40
2024-11-07 02:34:01,529 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-07 02:34:01,864 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-07 02:34:01,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902?flat'}
2024-11-07 02:34:01,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902 is found in opserver
2024-11-07 02:34:01,938 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:34:01,944 - DEBUG - VRF ids for VN ctest-vn-60251902: {}
2024-11-07 02:34:01,944 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-07 02:34:01,950 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb
2024-11-07 02:34:01,966 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6
2024-11-07 02:34:02,039 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,051 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,059 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e
2024-11-07 02:34:02,066 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e
2024-11-07 02:34:02,073 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bb2d66-28ae-4c98-b894-8736332a1908
2024-11-07 02:34:02,080 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:34:02,080 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,088 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e
2024-11-07 02:34:02,101 - INFO - Verified VN network id 9 for VN f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,101 - INFO - Verifications in API Server for VN ctest-vn-52240831 passed
2024-11-07 02:34:02,101 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,110 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e
2024-11-07 02:34:02,117 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e
2024-11-07 02:34:02,125 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bb2d66-28ae-4c98-b894-8736332a1908
2024-11-07 02:34:02,139 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09122141', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17731527048184680401', 'uuid-lslong': '13706848331573252280'}, 'enable': 'true', 'created': '2024-11-07T02:33:59', 'last-modified': '2024-11-07T02:34:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453580'}
2024-11-07 02:34:02,146 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:34:02,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52240831 passed
2024-11-07 02:34:02,147 - DEBUG - ====Verifying policy data for ctest-vn-52240831 in API_Server ======
2024-11-07 02:34:02,147 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-07 02:34:02,154 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb
2024-11-07 02:34:02,168 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6
2024-11-07 02:34:02,242 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8
2024-11-07 02:34:02,251 - DEBUG - ==>Verifying data for policy with id: c1d664f9-a38e-4952-a01f-a2f81fbce64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']
2024-11-07 02:34:02,251 - INFO - VN ctest-vn-52240831 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:34:02,251 - DEBUG - Verifying the vn in opserver
2024-11-07 02:34:02,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831 virtual network link through opserver 10.0.0.40
2024-11-07 02:34:02,251 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-07 02:34:02,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831?flat'}
2024-11-07 02:34:02,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831 is found in opserver
2024-11-07 02:34:02,275 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:34:02,280 - DEBUG - VRF ids for VN ctest-vn-52240831: {}
2024-11-07 02:34:02,338 - DEBUG - Services list from nova: [